Ways to open Command Prompt in a folder in Windows

The Command Prompt is Windows feature of Windows that lets you execute MS-DOS and other computer commands and perform tasks on your computer without using the Windows graphical interface. There are various ways how you can launch Command Prompt windows.

Open a command prompt window in any folder

In this post we will see two very simple ways to open a command prompt window in any folder or on the desktop, without having to navigate the menu. The first is using the context menu.

Hold down Shift key and use context menu

To open a command prompt window in any folder, simply hold down the Shift key and right click on the desktop. In the context menu, you will see the option to Open command window here. Clicking on it will open a CMD window.

shitft-cmd-1

You can also do the same inside any folder. The prompt takes the path of the folder from where it is opened.

Windows 10 v1709 replaced Open command window here with Open PowerShell window here. But with a registry tweak you can restore Open command window here item to Windows 10 folder context menu.

Type CMD in the address bar

There is another trick to do the same thing. navigate to the folder and then simply type CMD in the address bar and hit Enter to open the command prompt window there.

cmd-in-folder

You will see the CMD taking the path of this folder.

Speaking of the command prompt, there are several Command Prompt tricks you may not know, including how to open an elevated command prompt using a CMD. Check them out!

Posted by on , in Category Windows with Tags

Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.