I use the Win+R "run" box a thousand times a day (mostly because I
create dozens of one-word commands using the Windows Registry AppPaths key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
As you know, the shortcut link to the RUN box is located here by default.
C:\Users\username\AppData\Roaming\Microsoft\Windows\
Start Menu\Programs\System Tools\Run.lnk
I already have that RUN box shortcut pinned to the taskbar, but what I'd
like to add is a RUN box option to the right-click context menu.
I already have something similar in the context menu, which is the "open command window here" option - so all I want to do is add another line to
the rightclick context menu of something like "Open RUN box here".
Here's a way to add the "Open command window here" to the rightclick menu.
https://www.windowscentral.com/add-open-command-window-here-back-context-menu-windows-10
In that method, they change HKEY_CLASSES_ROOT\Directory\shell\cmd key value of "HideBasedOnVelocityId" to "ShowBasedOnVelocityId" (which magically adds "Open command window here" option to the shift-rightclick context menu).
The value of the DWORD is set to 639bc8 which is what gives it the magic.
https://www.askvg.com/windows-10-tip-restore-open-command-window-here-option-in-shiftright-click-menu/
I tried that, and it works perfectly, but what I want to do is modify that, somehow, so that it will "Open RUN box here" (or something to that effect).
Does anyone on this newsgroup know Windows well enough to modify that sequence to instead of adding "open command window here" to the context
menu, but to add the RUN box to the rightclick context menu instead?
Bill Powell <bill@anarchists.org> wrote:
I use the Win+R "run" box a thousand times a day (mostly because I
create dozens of one-word commands using the Windows Registry AppPaths key >> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
As you know, the shortcut link to the RUN box is located here by default.
C:\Users\username\AppData\Roaming\Microsoft\Windows\
Start Menu\Programs\System Tools\Run.lnk
I already have that RUN box shortcut pinned to the taskbar, but what I'd
like to add is a RUN box option to the right-click context menu.
I already have something similar in the context menu, which is the "open
command window here" option - so all I want to do is add another line to
the rightclick context menu of something like "Open RUN box here".
Here's a way to add the "Open command window here" to the rightclick menu. >> https://www.windowscentral.com/add-open-command-window-here-back-context-menu-windows-10
In that method, they change HKEY_CLASSES_ROOT\Directory\shell\cmd key value >> of "HideBasedOnVelocityId" to "ShowBasedOnVelocityId" (which magically adds >> "Open command window here" option to the shift-rightclick context menu).
The value of the DWORD is set to 639bc8 which is what gives it the magic.
https://www.askvg.com/windows-10-tip-restore-open-command-window-here-option-in-shiftright-click-menu/
I tried that, and it works perfectly, but what I want to do is modify that, >> somehow, so that it will "Open RUN box here" (or something to that effect). >>
Does anyone on this newsgroup know Windows well enough to modify that
sequence to instead of adding "open command window here" to the context
menu, but to add the RUN box to the rightclick context menu instead?
Not sure how having to right-click the mouse to move the pointer to a
Run Box entry (similar to right-clicking on the Start Menu button to
pick Run) is easier or faster than using Win+R to open the Run box.
However, since you know how to add a context menu entry for Command
Prompt Here, you can do the same to add a context menu entry to run: explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
That opens the Run box dialog.
explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}How did you know that magical command?
Bill Powell <bill@anarchists.org> wrote:
Hey! I didn't know that special secret command brings up the RUN box!
explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
Typing Win+R requires two hands (at least for me to do it, it does).
Rightclicking on any screen to select a context menu item only needs
one.
To make matters worse, on a typical dual-screen setup, the taskbar
is different for each screen (don't ask me why - ask Microsoft why).
Just being able to rightclick, no matter where your mouse is, is nice.
Hey! I didn't know that special secret command brings up the RUN box!
explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}How did you know that magical command?
I was at this very moment writing a batch file to bring up the RUN box.
@echo off
REM: c:\batch\runbox.bat (brings up the RUN box GUI in Windows)
%comspec% /c "C:\Users\me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Run.lnk"
exit
Then I was adding that batch file to the rightclick context menu.
1. Win+R > regedit
2. Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\
3. Optionally save that as a registry favorite with the name of:
https://www.techspot.com/guides/1670-windows-right-click-menu/
4. Create a new key under shell... let's call it "runbox"
5. Create a new key under 'runbox' called "command"
6. Set the 'command' value to be the batch file that you want run
@Default=c:\batch\runbox.bat
But that requires me to forevermore maintain a runbox.bat batch file.
I just now changed that last step to the command you just gave me!
6. Set the command value to be the exact command that you want run
@Default=explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
Which worked without needing to maintain a separate batch file!
I then exported that registry key to "runbox.reg" as shown below.
.... [ cut here for the start of runbox.reg ]....
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\runbox]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runbox\command]
@="explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}"
.... [ cut here for the end of runbox.reg ]....
Now anyone can add a "runbox" command to their rightclick context menus!
Thank you for making it even easier to bring up a RUN box in Windows
without having to type anything nor to maintain a separate batch file!
VanguardLH <V@nguard.LH> wrote:
Bill Powell <bill@anarchists.org> wrote:
Hey! I didn't know that special secret command brings up the RUN box!
explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
explorer.exe is the parent process which then calls the FileRun method
in the shell32.dll library. {2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} is
the class ID for the context menu handler defined in the registry.
Using explorer.exe to call a method in a DLL is similar to how functions
in a .dll file are called by rundll32.exe.
Rightclicking on any screen to select a context menu item only needs
one.
Depends on WHAT you intended to right click upon. Content menu entries
can be dependent on the object on which you click. In File Explorer,
you'd want to add a right-click entry for folder/directory objects (HKEY_CLASSES_ROOT\Directory\Background\shell). explorer.exe is both
the File Explorer and desktop manager. Your desktop, however, is a
special folder that gets different context menu entries. Adding the
entry to the Directory\Background\shell might still work to get a
context menu entry when right-clicking on the desktop folder. In case
you happen to right-click on a file, you'd want to add a content menu
entry for file objects, but I'd have to hunt on how to do that for file objects. That might be under HKEY_CLASSES_ROOT\*\shell.
Rather than define a bunch of shell extensions under various object
types in the registry, I think Win+R (and, for me, using just 1 hand) is probably easier than trying to figure out why the Run entry doesn't show
in a particular object's context menu.
To make matters worse, on a typical dual-screen setup, the taskbar
is different for each screen (don't ask me why - ask Microsoft why).
I wasn't looking for a Windows taskbar solution, like adding a toolbar
with common shortcuts, or pinning the given explorer.exe command to the taskbar.
Did you right-click on the Taskbar, choose Settings, and enable the
"Show taskbar on all displays" option? If so, is the dependent option
"Show taskbar buttons on" set to "All taskbars"?
I was at this very moment writing a batch file to bring up the RUN box.
@echo off
REM: c:\batch\runbox.bat (brings up the RUN box GUI in Windows)
%comspec% /c "C:\Users\me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Run.lnk"
exit
Then I was adding that batch file to the rightclick context menu.
1. Win+R > regedit
2. Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\
3. Optionally save that as a registry favorite with the name of:
https://www.techspot.com/guides/1670-windows-right-click-menu/
4. Create a new key under shell... let's call it "runbox"
5. Create a new key under 'runbox' called "command"
6. Set the 'command' value to be the batch file that you want run
@Default=c:\batch\runbox.bat
But that requires me to forevermore maintain a runbox.bat batch file.
Doesn't that also open a command shell? Batch commands are interpreted
by the command interpreter which usually opens a console window.
That should work when you right-click on a folder of which the desktop
is one. However, it might not show in the context menu when you
right-click on a file object, or network object, or other object type.
Now anyone can add a "runbox" command to their rightclick context menus!
Thank you for making it even easier to bring up a RUN box in Windows
without having to type anything nor to maintain a separate batch file!
You're welcome. I'm old school, so typing is faster than mousing
around, and why Win+R is faster for me, especially since I only need one hand, and my eyes don't have to wander through a context menu to find an entry there. Different strokes for different folks.
All I know is the method I found here is what I used, and it created the desired runbox rightclick context menu item for both the desktop & folders.
https://www.techspot.com/guides/1670-windows-right-click-menu/
I use the Win+R "run" box a thousand times a day (mostly because I
create dozens of one-word commands using the Windows Registry AppPaths key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
As you know, the shortcut link to the RUN box is located here by default.
C:\Users\username\AppData\Roaming\Microsoft\Windows\
Start Menu\Programs\System Tools\Run.lnk
I already have that RUN box shortcut pinned to the taskbar, but what I'd
like to add is a RUN box option to the right-click context menu.
I already have something similar in the context menu, which is the "open command window here" option - so all I want to do is add another line to
the rightclick context menu of something like "Open RUN box here".
Here's a way to add the "Open command window here" to the rightclick menu.
https://www.windowscentral.com/add-open-command-window-here-back-context-menu-windows-10
In that method, they change HKEY_CLASSES_ROOT\Directory\shell\cmd key value of "HideBasedOnVelocityId" to "ShowBasedOnVelocityId" (which magically adds "Open command window here" option to the shift-rightclick context menu).
The value of the DWORD is set to 639bc8 which is what gives it the magic.
https://www.askvg.com/windows-10-tip-restore-open-command-window-here-option-in-shiftright-click-menu/
I tried that, and it works perfectly, but what I want to do is modify that, somehow, so that it will "Open RUN box here" (or something to that effect).
Does anyone on this newsgroup know Windows well enough to modify that sequence to instead of adding "open command window here" to the context
menu, but to add the RUN box to the rightclick context menu instead?
On Thu, 13 Jun 2024 21:54:26 -0500, VanguardLH wrote:
VanguardLH <V@nguard.LH> wrote:
Bill Powell <bill@anarchists.org> wrote:
Hey! I didn't know that special secret command brings up the RUN box!
explorer.exe Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}
explorer.exe is the parent process which then calls the FileRun method
in the shell32.dll library. {2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} is
the class ID for the context menu handler defined in the registry.
Using explorer.exe to call a method in a DLL is similar to how functions
in a .dll file are called by rundll32.exe.
http://www.softwareok.com/?seite=Microsoft/Run-Command
https://www.techspot.com/guides/1670-windows-right-click-menu/
https://helpdeskgeek.com/windows-11/how-to-customize-the-right-click-context-menu-in-windows-11/
For commands you run a thousand times a day, efficiency starts to matter.
Mainly, for commands that you run a thousand times a day, you want to be
able to run them no matter what situation your hands, keyboard, and mouse
are in at that very moment. The RUN command is used a thousand times daily.
Typing Win+R requires two hands (at least for me to do it, it does). Rightclicking on any screen to select a context menu item only needs one.
For commands you run a thousand times a day, efficiency starts to matter.
On 6/13/24 18:38, Bill Powell wrote:
For commands you run a thousand times a day, efficiency starts to
matter.
Hi Bill,
I have this functionality on Linux. I have actually
configured several command windows to open at various
places on my drive. It is super convenient.
I would love to have that capability in Windows too.
Did you ever figure it out?
-T
I have this functionality on Linux. I have actually
configured several command windows to open at various
places on my drive. It is super convenient.
I would love to have that capability in Windows too.
Did you ever figure it out?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 508 |
Nodes: | 16 (0 / 16) |
Uptime: | 242:36:31 |
Calls: | 9,986 |
Calls today: | 4 |
Files: | 13,836 |
Messages: | 6,358,644 |