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

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

      1. F4 makes address bar active and drop-downs MRU list.
        Then i press ESC to close drop-down list. The path inside of address bar becomes selected and
        i start typing what i need (replacing text).
        So, finally 2 keys combination :) But more generic ;)

  1. Hi,
    I believe the trick works with any language locale, you just have to know what key combination puts the focus into the address bar.
    I have an Italian version of Win7Pro and Alt+I (letter i) is the alternative to the English version Alt+D. Then, the following is the same, just type cmd in the address bar and the command prompt will open in the current directory.

    Regards

  2. Hi,
    you can actually use the same trick with any Windows 7 in any language. You just have to know which key combination to put the focus on the address bar will work for you.

    Alt+i works for the Italian versions of Windows (replaces Alt+d)

    Regards

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