Opening a command line terminal from Windows Explorer
I'm sure that I'm not the only one who gets irritated when opening a terminal window from the Windows start menu that the first thing I have to do is cd out of my user directory into wherever I want to be.
On my old Win 7 machine I had an Explorer extension that let me open a command line in the selected directory. I don't have that on my current Win 10 machine. Neither do I want to do some registry editing nonsense to enable it.
So imagine the joy when I discovered this hack yesterday:
-
In Windows Explorer select the folder where you want to open a command line terminal window. Select the folder in the left hand pane.
-
Type cmd in the address bar.
-
Press enter, and voila!
Wow ... wish I'd known that a few years ago.
Now, if I'm the only one in the world who doesn't know this already apologies for wasting your time!
And yes, I'm still using cmd.exe, and no, I don't use PowerShell. And yes, I'm an old fart resisting change. But I've checked and it works for PowerShell too:
Which is nice.
cd /d D:\Dev\Electronics
ReplyDeletedoskey cd=cd /d $*
ReplyDeletecd D:\Dev\Electronics
Thanks both. I'll be using that.
ReplyDeleteYou learn summat new every day!
Shift+RightClick
ReplyDeleteWorks in any folder, in any place.
Thx, but while Shift-RightClick used to work on my previous Windows install, on my current Win 10 20H2 it doesn't! Judging by various posts on Stack Exchange etc, others have the same prob :(
ReplyDeleteAs a keyboard user (mostly), I would select any folder then press Alt+D or Ctrl+L, type any command there, like cmd or cmd /c , or wt -d . to start windows terminal, or git clone <...>. Another way was to use quick access toolbar (Alt+) customized, when it had CMD instead of PowerShell, now in Windows 11, it is gone Ribbon's quick access toolbar.
ReplyDeleteThx vhanla
ReplyDeleteI'll try some of those keyboard shortcuts & see if I can remember them!
If you install Windows Terminal, you get an "Open in Windows Terminal" option.
ReplyDeleteYou can set Windows Terminal to use cmd as the default
Ta Gerry.
ReplyDeleteI'll investigate that