WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE COM ADO CDO ADSI LDAP
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Display the Windows Run Dialog Box

 Keywords:  Display Windows commandline Run Dialog

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 Excape

OR 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
File Created: 2012:11:26:09:53:44
Last Updated: 2012:11:26:09:53:44