Create a gist now

Instantly share code, notes, and snippets.

Embed
Script to add option "Open PowerShell window here" in folder context menu
Windows Registry Editor Version 5.00
; Philippe Ouellet
; May 5, 2014
; Script to add option "Open PowerShell window here" in folder context menu
[HKEY_CLASSES_ROOT\Drive\shell\PowerShell]
@="Open PowerShell window Here"
[HKEY_CLASSES_ROOT\Drive\shell\PowerShell\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%1'"
[HKEY_CLASSES_ROOT\Directory\background\shell\PowerShell]
@="Open PowerShell window Here"
[HKEY_CLASSES_ROOT\Directory\background\shell\PowerShell\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell]
@="Open PowerShell window Here"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%1'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment