How to open the Run window programmatically

2019-02-25 15:39发布

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 ?

3条回答
地球回转人心会变
2楼-- · 2019-02-25 16:15

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?

查看更多
叼着烟拽天下
3楼-- · 2019-02-25 16:17

If you mean that it could open say at 8:00 am, then you can use autohotkey and simply write SendInput {Raw}{Lwin}{R} and then compile it as an .exe and put it as a cron job

查看更多
该账号已被封号
4楼-- · 2019-02-25 16:20

You can use IShellDispatch::FileRun to achieve this.

See Using the Windows RunFile dialog - The documented and undocumented way for details and sample code.

查看更多
登录 后发表回答