Reputation: 2334
I have been trying to create some registry keys to open PowerShell as you would Command Prompt in explorer by pressing Ctrl+Shift+Right Click.
I have the context key created here:
but the value I put here:
returns an error when I click Open PowerShell here
I've tried a few string values now but still with similar results. Has anyone accomplished this using the background directory key and if so how did you do it?
Upvotes: 0
Views: 642
Reputation: 9303
You will want to use %V
instead of %1
.
Change the Default value like so:
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoExit "cd '%V'"
Upvotes: 2