Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / shell

Open A Command Prompt Anywhere

4.98/5 (127 votes)
8 Mar 2016CPOL 188.6K  
This hidden key-click combination adds the ability to open a command prompt window from a Windows Explorer view.

Maybe I'm the last one to find/discover this trick but I was so pleased to find it, I had to share it anyways.

Often when browsing directories in Windows Explorer, you want to open a command shell, using the directory being viewed as the current directory. In older versions of Windows, you could add an item to the context menu by adding a registry setting or installing a third-party utility.

In Windows 7 (and possibly Vista, Windows 2008), a menu item is added to the context-sensitive right-click menu by holding down SHIFT as you click:

Image 1

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)