News, Product Information, and Tips
Check out our free utlities in the downloads section

Remote Administration



Remote Administration For Windows. Easy remote access of Windows 7, XP, 2008, 2000, and Vista Computers

Click here to find out more

Create Outlook Profiles



No more setup wizards in Outlook. Setup Outlook Profiles automatically from the command line

Click here to find out more

Network Administrator



Reboot Hundreds of computers, disable flash drives, deploy power managements settings.

Click here to get your free copy of Network Administrator. Over 25 plugins to make your life easier

USB Disabler



Disable Flash Drives for specific users, or only allow specific drives.

Click here for your free trial

Search

Archives

Open command prompt in any folder

by Steve Wiseman on November 13, 2007 · 1 comment

in Windows

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.

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles:

{ 1 comment… read it below or add one }

1 LarryLaser April 5, 2010 at 9:28 am

There is a problem,
when I “right Click” to open cmd.exe in a folder the Command Window acts like it is running and closes down after every file is passed thru the cmd window.

What could be the cause of this problem??
I can also set it for Admin operation command also but it does the same.

{ [HKEY_CLASSES_ROOT\Directory\shell\runas] }
{ @=”Open Command Window Here (Administrator)” }

{ [HKEY_CLASSES_ROOT\Directory\shell\runas\command] }
{ @=”cmd.exe /s /k pushd \”%V\”"}

Leave a Comment

Category Links - Windows Forum - Exchange Forum