Jump to content

- - - - -

Run Dialog Shortcut - message not displayed

  • Please log in to reply
1 reply to this topic

#1 misty


    Gold Member

  • Developer
  • 1034 posts
    United Kingdom

Posted 19 February 2018 - 10:52 PM

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
  • 51 posts

Posted 20 February 2018 - 02:25 AM

'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, 20 February 2018 - 02:26 AM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users