Wednesday, July 14, 2010 2:35 PM
Kurt Roggen
Tips & Tricks #3 - PowerShell window from here
I've been using PowerShell for a while now but it still hasn't replaced the command prompt for me yet, even though it is extremely powerful!! I have been using the Command Prompt From Here a lot to make it easier to open up a command prompt at a specific folder location from the Explorer. So now I added some settings to the registry that will do the same but with PowerShell instead.
Here is the registry file for making the entry in Explorer:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell]
@="Open PowerShell window here"
[HKEY_CLASSES_ROOT\Directory\shell\PowerShell\Command]
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoExit -Command [Environment]::CurrentDirectory=(Set-Location -LiteralPath:'%L' -PassThru).ProviderPath\""
Related reading:
Filed under: Powershell