Date: | November 24, 2003 / year-entry #139 |
Tags: | code;tipssupport |
Orig Link: | https://blogs.msdn.microsoft.com/oldnewthing/20031124-00/?p=41723 |
Comments: | 6 |
Summary: | Here's a little script that opens the Run dialog. You can save it as "Run.js" and double-click it. (new ActiveXObject("Shell.Application")).FileRun(); The advantage of this approach over various others people have come up with is that this one is actually documented. (And therefore is less likely to break in the next version of the operating system.) |
Here's a little script that opens the Run dialog. You can save it as "Run.js" and double-click it. (new ActiveXObject("Shell.Application")).FileRun(); The advantage of this approach over various others people have come up with is that this one is actually documented. (And therefore is less likely to break in the next version of the operating system.) |
Comments (6)
Comments are closed. |
Hitting Windows+R is documented too, at Q126449.
Hitting Windows+R is also documented in the Help system, and I think it has been since Windows 98. (I think that’s when I found it, as well as all of the other things you can do with the Windows key.)
Except you can’t use WScript’s sendkeys method to send the windows key. That’s what makes the script chunk above useful.
You can also just create a regular shortcut to " &Run… ". not sure if it’s documented anywhere though :-).
You can just drag and drop "Run" from the start menu onto desktop. That will start the "Run" when you double-click.
That only works with XP’s new start menu, not the old, "classic" start menus.