I have scripted StartRun.bat to invoke the Start menu Run dialog.
The syntax for using StartRun.bat is:
call StartRun \[W\]
Where W is an optional parameter that will pause your invoking script until you press a key.
StartRun.bat contains:
@echo off setlocal set arg=%1 if defined arg set arg=%arg:"=% if not exist "%TEMP%\StartRun.vbs" @echo CreateObject("Shell.Application").FileRun>"%TEMP%\StartRun.vbs" cscript //nologo "%TEMP%\StartRun.vbs" if /i "%arg%" NEQ "W" goto finish pause :finish endlocal
0 comments
Hide comments