Skip to content

Instantly share code, notes, and snippets.

@hamishnorton
Created December 2, 2018 02:53
Show Gist options
  • Save hamishnorton/5000e3983d93b043c8a097a17ebcb019 to your computer and use it in GitHub Desktop.
Save hamishnorton/5000e3983d93b043c8a097a17ebcb019 to your computer and use it in GitHub Desktop.
Windows 10, Explorer Context Menus for PowerShell and Command Prompt
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Cmd]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
"Icon"="imageres.dll,-5323"
[HKEY_CLASSES_ROOT\Directory\shell\Cmd\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
@="@shell32.dll,-8508"
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmd]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""
"Icon"="imageres.dll,-5323"
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmd\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]
@="@shell32.dll,-8508"
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
[HKEY_CLASSES_ROOT\Drive\shell\Cmd]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
"Icon"="imageres.dll,-5323"
[HKEY_CLASSES_ROOT\Drive\shell\Cmd\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Drive\shell\Powershell]
@="@shell32.dll,-8508"
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Drive\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment