An image of the Windows logo on a keyboard

Launching a Windows Terminal to a Specific Folder

Print Friendly and PDF

Posted: January 1, 2024 | Categories: Microsoft Windows

In Windows Path Items Not Available in Visual Studio Code I mentioned opening a terminal window from Windows File Explorer but didn't explain what I meant. Years ago I learned an interesting trick for opening a Windows terminal window to a specific folder; there are two ways, but I don't think many people know about the second one. This article describes both options.

Right-Click

I think most people know about this one, but sharing just in case you don't. To open a terminal window to a specific folder:

  1. Open Windows File Explorer
  2. Navigate to the parent folder of the target folder (the folder you want to open a terminal window into)
  3. Hold down the Shift key and hover the mouse over the target folder
  4. Right-click on the folder and select Open in Terminal as shown in the following figure

An image showing a user right-clicking on a folder to open a Windows Terminal

At this point, File Explorer opens the terminal window to the scope of the selected folder as expected.

Command Approach

Another method for opening a terminal window to a particular folder, is to type the executable name for the terminal window (cmd) into the address bar in Windows File Explorer. Here's how to do it:

  1. Open Windows File Explorer.
  2. Navigate to the target folder (the folder you want to open a terminal window into).
  3. In the folder location input field highlighted in the following figure type cmd and press enter.

Selecting the folder input field:

An image of Windows File Explorer with the folder location entry field selected

Entering the command into the folder location input field:

An image showing the `cmd` command entered in the folder location field

At this point, File Explorer opens the terminal window to the scope of the selected folder as expected.

Windows terminal window open to the selected folder

I hope this helps you use Windows more efficiently.


Next Post: Leaked Credentials from Google Cloud Project

Previous Post: End of the Year Wrap-up (2023)

If this content helps you in some way, please consider buying me a coffee.

Header image: Photo by Tadas Sar on Unsplash