Created
March 3, 2018 09:03
-
-
Save gojimmypi/de339f493ec647a77a1fed2003e34a6a to your computer and use it in GitHub Desktop.
“Open with Command Prompt” when shift-right clicking in Explorer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; see https://superuser.com/questions/1201988/how-do-i-change-open-with-powershell-to-open-with-command-prompt-when-shift | |
; Command Prompt | |
[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd] | |
"MUIVerb"="Command Prompts" | |
"Icon"="cmd.exe" | |
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" | |
[HKEY_CLASSES_ROOT\Directory\background\shell\01MenuCmd] | |
"MUIVerb"="Command Prompts" | |
"Icon"="cmd.exe" | |
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open] | |
"MUIVerb"="Command Prompt" | |
"Icon"="cmd.exe" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas] | |
"MUIVerb"="Command Prompt Elevated" | |
"Icon"="cmd.exe" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |
; PowerShell | |
[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell] | |
"MUIVerb"="PowerShell Prompts" | |
"Icon"="powershell.exe" | |
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell" | |
[HKEY_CLASSES_ROOT\Directory\background\shell\02MenuPowerShell] | |
"MUIVerb"="PowerShell Prompts" | |
"Icon"="powershell.exe" | |
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open] | |
"MUIVerb"="PowerShell" | |
"Icon"="powershell.exe" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command] | |
@="powershell.exe -noexit -command Set-Location '%V'" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas] | |
"MUIVerb"="PowerShell Elevated" | |
"Icon"="powershell.exe" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command] | |
@="powershell.exe -noexit -command Set-Location '%V'" | |
; Ensure OS Entries are on the Extended Menu (Shift-Right Click) | |
[HKEY_CLASSES_ROOT\Directory\shell\cmd] | |
"Extended"="" | |
[HKEY_CLASSES_ROOT\Directory\background\shell\cmd] | |
"Extended"="" | |
[HKEY_CLASSES_ROOT\Directory\shell\Powershell] | |
"Extended"="" | |
[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell] | |
"Extended"="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment