Display the Windows Run Dialog Box
Keywords: Display Windows commandline Run Dialog
This article being edited.Question:
How do I display Run dialog box in Win Nt, 2000, and XP? This is the dialog box displayed when you click on Start/Run. I know if I send 'Windows' key and 'r' to desktop the dialog box displays but I do not know the name of desktop window and the name for 'Window' key(the key with windows icon on it).Answer:
Ummmm Why? Usually you can just use the Run or ShellExecute statements in WinBatch to launch any application, that you can run from the Windows Run Commandline.But if you must you can use sendkey..
Windows Key = SendKey("^{ESC}") ; Control ExcapeOR maybe you want
cmd=AskLine("","Enter Run Cmd","") x=FilePath(cmd) if x!="" then DirChange(x) Run(cmd,"")Finally it can also be done using OLE:
;displays run dialog oShellApp = ObjectOpen("Shell.Application") oShellApp.FileRun
Article ID: W15224