Skip to content

Instantly share code, notes, and snippets.

@fernandofig
Last active October 19, 2023 22:43
Show Gist options
  • Save fernandofig/6992956f3c44af93a5e6f164eb8fbbe1 to your computer and use it in GitHub Desktop.
Save fernandofig/6992956f3c44af93a5e6f164eb8fbbe1 to your computer and use it in GitHub Desktop.
Command Prompts (CMD & Powershell) Context Menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
[-HKEY_CLASSES_ROOT\Directory\shell\cmd]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd]
[-HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd]
[-HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
[-HKEY_CLASSES_ROOT\Directory\shell\powershellmenu]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\powershellmenu]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell]
[-HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell]
[-HKEY_CLASSES_ROOT\Directory\shell\03MenuMSYS]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\03MenuMSYS]
[-HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuMSYS]
; Command Prompt
[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[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"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open]
"MUIVerb"="PowerShell"
"Icon"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas]
"MUIVerb"="PowerShell Elevated"
"Icon"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -command Set-Location '%V'"
; MSYS
[HKEY_CLASSES_ROOT\Directory\shell\03MenuMSYS]
"MUIVerb"="MSYS Prompts"
"Icon"="C:\\\\Windows\\\\msys2.ico"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuMSYS"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\03MenuMSYS]
"MUIVerb"="MSYS Prompts"
"Icon"="C:\\\\Windows\\\\msys2.ico"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuMSYS"
"Extended"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuMSYS\shell\open]
"MUIVerb"="MSYS"
"Icon"="C:\\\\Windows\\\\msys2.ico"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuMSYS\shell\open\command]
@="D:\\\\System\\\\MSYS\\\\usr\\\\bin\\\\mintty.exe -i /msys2.ico --dir \"%V/\" /bin/env MSYSTEM=MSYS CHERE_INVOKING=1 /usr/bin/bash -l"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuMSYS\shell\runas]
"MUIVerb"="MSYS Elevated"
"Icon"="C:\\\\Windows\\\\msys2.ico"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuMSYS\shell\runas\command]
@="D:\\\\System\\\\MSYS\\\\usr\\\\bin\\\\mintty.exe -i /msys2.ico --dir \"%V/\" /bin/env MSYSTEM=MSYS CHERE_INVOKING=1 /usr/bin/bash -l"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment