Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Windows: Keyboard Shortcut to Command Prompt of Current Directory

📅 2011-May-27 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

Watching a TechEd 2011 video on Visual Studio Tips and Tricks, I was introduced to a cool keyboard shortcut to open a Command Prompt at the directory open in Windows Explorer. It is well known that this can be done by holding Shift while right clicking the mouse and choosing Open command window here.

 

To achieve the same using only the keyboard, press Alt+d, type cmd and press Enter. Alt+d is the keyboard shortcut in lots of Windows applications, including Windows Explorer, that puts the focus into the location bar. Type cmd in the location bar and press Enter to open a Command Prompt for the directory currently open in Explorer.

(Note: If you are using Windows with a non-English locale, this solution will not work for you. For such a situation, check out the solution offered by Airmax in the comments below.)

Tried with: Windows 7