Jump to content











Photo
- - - - -

Run Dialog Shortcut - message not displayed


  • Please log in to reply
1 reply to this topic

#1 misty

misty

    Silver Member

  • Developer
  • 879 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 -
run_x86.jpg

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

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

:cheers:

Misty

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

#2 slore

slore

    Newbie

  • Members
  • 25 posts
  •  
    China

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")
objShell.FileRun

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

Send("#r")

Edited by slore, 20 February 2018 - 02:26 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users