NotNull wrote:
- Everything has an option to add custom verbs, including keyboard shortcuts. That way you can - for example - use <Alt-C> to start CMD or <Shift-Alt-C> to start an elevated CMD in the right folder. Unfortunately, Everything had problems with the cascaded submenu's. If you don't use the "Extra" submenu, it will work.
Here is that version (I thought that would be trivial, but maybe not...)
Assuming <Alt-C> and <Shift-Alt-C> are not used in Everything (default they are not) and you are not already using custom verbs (if you don't know what these are, you very likely do not use them) ...
- Import reg-file
- Stop Everything
- Add custom verb settings to Everything.ini
- Start Everything
- Done
Note: you can use the
INJECT script to do steps 2,3 and 4 for you.
Now you can press <Alt-C> on a file or folder to open CMD in it. <Shift-Alt-C> for an elevated command prompt.
Or use Shift-Rightclick on the file/folder to show the CMD here /CMD here (elevated) options.
You can change the keyboard shortcuts through Menu:Tools > Options > Keyboard > Show commands containg "Verb". Verb 1 = cmd; verb 2 = elevated cmd.
CONEXTMENU2.reg
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\*]
[HKEY_CURRENT_USER\Software\Classes\*\Shell]
[HKEY_CURRENT_USER\Software\Classes\*\Shell\CMDelevate]
@=""
"Extended"=""
"HasLUAShield"=""
;--------[ SETTING ]-----------------------------------------
"MUIVerb"="CMD here (elevated)"
;------------------------------------------------------------
[HKEY_CURRENT_USER\Software\Classes\*\Shell\CMDelevate\Command]
@="powershell.exe -Command \"Start-Process cmd.exe -argumentlist '/k pushd \"%1\\..\"' -verb Runas\""
[HKEY_CURRENT_USER\Software\Classes\*\Shell\CMDhere]
@=""
"Extended"=""
;--------[ SETTING ]-----------------------------------------
"MUIVerb"="CMD here"
"Icon"="imageres.dll,-5323"
;------------------------------------------------------------
[HKEY_CURRENT_USER\Software\Classes\*\Shell\CMDhere\Command]
@="\"c:\\windows\\system32\\cmd.exe\" /k pushd \"%1\\..\""
;==============================================================
[HKEY_CURRENT_USER\Software\Classes\Directory]
[HKEY_CURRENT_USER\Software\Classes\Directory\Shell]
[HKEY_CURRENT_USER\Software\Classes\Directory\Shell\CMDelevate]
"Extended"=""
"HasLUAShield"=""
;--------[ SETTING ]-----------------------------------------
"MUIVerb"="CMD here (elevated)"
;------------------------------------------------------------
@=""
[HKEY_CURRENT_USER\Software\Classes\Directory\Shell\CMDelevate\Command]
@="powershell.exe -Command \"Start-Process cmd.exe -argumentlist '/k pushd \"%1\"' -verb Runas\""
[HKEY_CURRENT_USER\Software\Classes\Directory\Shell\CMDhere]
@=""
"Extended"=""
;--------[ SETTING ]-----------------------------------------
"MUIVerb"="CMD here"
"Icon"="imageres.dll,-5323"
;------------------------------------------------------------
[HKEY_CURRENT_USER\Software\Classes\Directory\Shell\CMDhere\Command]
@="\"c:\\windows\\system32\\cmd.exe\" /k pushd \"%1\""
Extra entries for EVERYTHING.ini
Code: Select all
custom_verb01=CMDhere
custom_verb02=CMDelevate
file_custom_verb_1_keys=8771
file_custom_verb_2_keys=9795