How to Launch Command Prompt with Right Click

For Programmers

Brad Wood
If you are programmer then you would know that you will have to use command prompt every now and then. The most essential part of the work is debugging and that cannot be worked out without the help of the command prompt. So there has to be way to open command prompt very easily and you do not have to navigate to Start Menu, Run and then type 'cmd' in it to launch. This is a easy process if you have to do it less often, but there has to be a quick and easy way to do it. The another problem is that once the command prompt is launched, it open with a default path, which is generally the Home of the specified user account on which that command prompt was launched. So to get to the actual system path also takes more time to do.

And one of those easy ways is described here and the most beautiful thing is that you can launch the command prompt with the right click of the mouse on a folder and the option to open the command prompt will appear in that context menu. And the system default path will be set to the path of the folder on which you just right clicked. So easy a process! Here's How:

Open the Registry Editor. You can do so by typing 'regedit' in the run command that is found in the start menu. Now before proceeding, it is recommended to take a Registry Backup. This will allow you to restore the Registry in case something goes wrong. If you do not take a backup, you may lose all the data and may have to reformat the system and install the Operating System all over again. So just take a backup of your registry.

Now close the registry editor and open up notepad and enter the following lines into it.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="cmd.exe \"%1\""

Now save the file in a folder from where you can access this file. Name the file anything you want, but keep the extension as .reg. This will ensure that when you double click that file, the entries will be directly added to the Registry. Now all you to do is turn off the pc and restart it. Now just test it by right clicking a folder and selecting the command prompt option that is now visible. You would also see that the defualt path is set to the folder on which you right clicked.

Sources:
http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm

Published by Brad Wood

I am an easy going person, who loves to write. I enjoy writing in every genre, including poems, how to articles, etc.  View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.