Prash's Blog

How to setup a Command Prompt Here in Windows context menu October 1, 2012

Filed under: Uncategorized — prazjain @ 9:55 pm

I find it really useful to have an option in windows context menu (right click menu) to open command prompt with present directory as its current directory, so no need to open command prompt and change dir.
This is how to set it up, create a .reg file with following contents :

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command &Prompt Here"
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe \\\"%1\\\""

Now double click on the file, this will enter the settings in registry, and you are ready to use the shortcut.

Advertisements
 

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