Jump to content

- - - - -

Run Dialog Shortcut - message not displayed

  • Please log in to reply
1 reply to this topic

#1 misty


    Silver Member

  • Developer
  • 876 posts
    United Kingdom

Posted 4 weeks ago

I'm playing around with creating shortcuts for use in a WinPE menu system.

Using the following code in the target section of the shortcut will start a run dialog -
%SystemRoot%\System32\rundll32.exe %SystemRoot%\System32\shell32.dll,#61
Shortcut.exe syntax used to create the Shortcut -
Shortcut.exe /A:C /T:"%SystemRoot%\System32\rundll32.exe" /F:"PATH\run.lnk" /P:"%SystemRoot%\System32\shell32.dll,#61" /I:"%SystemRoot%\System32\shell32.dll,-25"
On a 32-bit target the run dialog works as normal when the shortcut is executed -

On a 64-bit target, the run dialog does not display any message -

The run dialog is working in both cases. Any thoughts? And any suggestions for a fix to correctly display a message?



P.s. this also applies to a normal Windows installation.

#2 slore



  • Members
  • 24 posts

Posted 4 weeks ago

'rundll32.exe shell32.dll,#61' -- the origin 61 function have 5 paramter.
the last one is the window style defination(no browser button, no description label...).
use rundll32 can't pass the paramter.
show the run dialog with  rundll32.exe, not only "message not displayed", because you cann't pass the
shell window's handle, it can't show in left-bottom corner.
use shell object
Set objShell = CreateObject("Shell.Application")

or just send WIN+R with some tool, like autoit


Edited by slore, 4 weeks ago.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users