问题
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 ?
回答1:
You can use IShellDispatch::FileRun
to achieve this.
See Using the Windows RunFile dialog - The documented and undocumented way for details and sample code.
回答2:
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}
来源:https://stackoverflow.com/questions/7738205/how-to-open-the-run-window-programmatically