Originally published at: http://www.howtogeek.com/165268/how-to-add-open-powershell-here-to-the-context-menu-in-windows/
For as long as we can remember, Windows has had a hidden Open command window here option on the context menu, but who uses the command prompt these days?
I'd rather add "open ipython here" or "open msys here" or even "open cmd here". Powershell's syntax is but anti-human, when you learned it, your brain would been completely damaged, and you can never learn a programming language (a real one) again.
Or you could install "FileMenu Tools" and avoid the registry. It is a file menu sub-menu which already contains an optional bunch of incredibly useful functions and to which you can quite easily add your own without mucking about with the registry. It's how I get to a command shell now and I just might add PowerShell if I ever get around to investing the time to master that.
Whoever it is that's pushing PowerShell here with some frequency you might consider setting up a course at Udemy. I'd sign up and take it.
Okay, it worked and I for one am impressed. I don't muck around in the Big "R" much but it is kinda cool to see windows is not the backwater it once was. Keep it up geeks!
Don, use these parameters for file menu tools
Action: Run Program
Menu Text: Open PowerShell Here
Working Folder: %FOLDERNAME%
Run as Administrator: Yes
No other settings need to be modified.
Thanks. I didn't know about the %FOLDERNAME% parameter. Really useful for some other things I've created in File Menu Tools. I hadn't figured out how to do that and of course hadn't read the help.
As a coding exercise for myself I made a PowerShell version of this:
1) New-PSDrive -Name hkcr -PSProvider Registry -Root HKEY_CLASSES_ROOT
2) New-Item hkcr:\Directory\shell\powershell -Value 'Open PowerShell Here'
3) New-Item hkcr:\Directory\shell\powershell\command -Value "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'"
This topic is now closed. New replies are no longer allowed.