howtogeek — 2013-06-19T08:03:02-04:00 — #1
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?
libre_lbelmont — 2013-06-19T09:43:02-04:00 — #2
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.
dongateley — 2013-06-19T15:14:31-04:00 — #4
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.
smartron — 2013-06-20T12:30:05-04:00 — #5
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!
sdelvecchio — 2013-06-26T08:51:16-04:00 — #6
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.
dongateley — 2013-06-26T19:36:52-04:00 — #7
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.
sdx — 2013-07-04T09:18:35-04:00 — #8
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'"
geek — 2013-12-13T10:54:23-05:00 — #9
This topic is now closed. New replies are no longer allowed.