Open command prompt in any folder

I use the command prompt quite a bit, and I was looking for a way to launch it directly from a folder I am looking at in explorer.

It turns out this is not too hard to do. I found a way to add a menu item when you right click on the folder. I will walk you though the steps to do it yourself

First open regedit, and browse to HKEY_CLASSES_ROOT\Directory\shell

Drill down to the 'directory' key, then the 'shell' key under that.

Command prompt in any folder

Under this create a new key named "cmd". Once created, double click on the default value on the right

Command Prompt Folder Registry

The text you type in here will be the description on the menu. I used "Open Command Prompt Here". This is what it will look like when we are finished:

Open command prompt window here

Under the cmd key you created, create another key named "command" Set the default value for this to

cmd.exe /k "cd %L && ver"

This is what it should look like in regedit:

Open Command Prompt Settings

Now when you right click on a folder you can launch a command prompt right in it.

Open Command Prompt Here Finished

Now here is the bonus. I created a little application that will do this all for you

Open Command Prompt Here application

Click here to download it. As always no spyware or adware - only freeware goodness.
Check out our Windows Admin Tools

Written by Steve Wiseman on November 12th, 2007 with comments disabled.
Read more articles on News.

Related articles

Comments disabled

Comments on this article have been disabled.