Windows Registry Editor Version 5.00
; Add_enhanced_cmd_and_powershell_to_menu.reg
; This adds Command and Powershell sub menu options
[HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd]
"ExtendedSubCommandsKey"="Directory\ContextMenus\MenuCmd"
"Icon"="cmd.exe"
"MUIVerb"="Command Prompts"
[HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell]
"ExtendedSubCommandsKey"="Directory\ContextMenus\MenuPowerShell"
"Icon"="powershell.exe"
"MUIVerb"="PowerShell Prompts"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open]
"Icon"="cmd.exe"
"MUIVerb"="Command Prompt"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas]
"HasLUAShield"=""
"Icon"="cmd.exe"
"MUIVerb"="Command Prompt Elevated"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open]
"Icon"="powershell.exe"
"MUIVerb"="PowerShell"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command]
@="powershell.exe -noexit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas]
"HasLUAShield"=""
"Icon"="powershell.exe"
"MUIVerb"="PowerShell Elevated"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command]
@="powershell.exe -noexit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
"ExtendedSubCommandsKey"="Directory\ContextMenus\MenuCmd"
"Icon"="cmd.exe"
"MUIVerb"="Command Prompts"
[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
"ExtendedSubCommandsKey"="Directory\ContextMenus\MenuPowerShell"
"Icon"="powershell.exe"
"MUIVerb"="PowerShell Prompts"
Yes there is. There must be. I remember having something set this up for me in Windows 95, and I wish it was easier to set these up yourself nowadays. – Jarmund – 2015-05-22T19:54:17.537
Possible duplicate of Can I add a Windows Explorer context menu option to start command prompt in the selected directory? See my answer there. The Extended verb should not be present in any of the 3 locations, i.e. Drive, Directory and Directory\Background.
– Karan – 2015-05-22T22:26:10.483"This question is different form this one" - No it isn't. Read my answer there carefully. Your use case is handled as well (I also mentioned it explicitly in my comment above). You mentioned 3 context menus; I mentioned 3 registry keys. Is this so hard to correlate? – Karan – 2015-05-23T00:14:28.573
Sorry, you are correct. I overlooked the third one. Thanks! – blashmet – 2015-05-26T17:54:14.980