Everyone knows the Run window that you can open with the shortcut Windows+R or directly in the Windows menu then Run.
I'm wondering how to open this Run window programmatically.
This window seems to be part of explorer.exe.
Does anyone have an idea on it ?
Asked
Active
Viewed 1,147 times
5

Nicolas
- 6,289
- 4
- 36
- 51
-
Why would you want to open the Run window? Can't you execute the programs directly instead of going trough the run command? or am i missing something here? I did try to locate if it were in a separate .exe or something like that, but as you say it seems to be a part of explorer.exe. Have you considered using cmd.exe? – Udrian Oct 12 '11 at 10:02
-
First of all, re-read the question; they never said *anything* about *running* anything, they simply asked about programmatically opening the Run dialog. Second, the Run dialog has options (check-boxes) to alter how the program/file is run that may not be easy, if at all possible to accomplish using whatever language they are using. – Synetech Jul 06 '14 at 17:30
3 Answers
4
You can use IShellDispatch::FileRun
to achieve this.
See Using the Windows RunFile dialog - The documented and undocumented way for details and sample code.

Roman R.
- 68,205
- 6
- 94
- 158
1
If you mean that it could open say at 8:00 am, then you can use autohotkey and simply write
and then compile it as an .exe and put it as a cron jobSendInput {Raw}{Lwin}{R}

MrJackV
- 547
- 3
- 5
- 12
-
1
-
1Not least of which, autohotkey introduces a whole slew of other issues, including security vulnerabilities – Basic Mar 26 '15 at 10:59
0
FYI, in Windows 10/11 (havn't checked 8.x) you can open the Run dialog easily by calling:
explorer shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
E.g. in a batch script:
start explorer shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}

user15566053
- 41
- 1
- 2