Windows: Keyboard Shortcut to Command Prompt of Current Directory

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

About these ads

5 thoughts on “Windows: Keyboard Shortcut to Command Prompt of Current Directory

  1. [...] you thought launching the Command Prompt from the Address Bar of Windows Explorer is cool, you will love this: any program that lies in [...]

  2. Alt+d is English locale dependent.
    More generic is F4.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s