Author
Get Command Prompt On Right Click In Windows (Read 266 times)

Post: 1
Get Command Prompt On Right Click In Windows
on: Friday 28 May, 2010, 01:10:45 AM

Most of us use a command prompt often and some of us don't know the commands in command prompt so what ever we want to navigate or open the location and get back there we need some commands which are not often known. So its better to have a command prompt in windows where ever we go and just right click on that folder so that a command prompt open there itself. Sounds good for me. I will give a simple code which adds a command prompt in right click so that where ever you want command prompt you can use the shortcut. For this you have to edit the registry. Nothing to worry about the code its perfectly tested and it doesn't effect your Registry.Take a look at the screen shot below which shows you the short cut.

So as you can see a command prompt in the above screen shot the same folder is opened within the command prompt when you open it.
This is it so easy to get the command prompt. Lets Get a back to the coding part.For this follow the simple steps below.
1) Click Start-->Open Run-->and Type Regedit in Run.
2) After Regedit is opened navigate to the following path 
"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell
3) Now Right Click on the shell and select a new key.
4) Now a new key should be created under shell. Change the name of this key to Command Prompt.
5) Again create a new key under Command Prompt which you have just renamed.
6) Rename that key file as command. See the below screen shot it should look like this.

7) Double click on the the "(Default)"and it will open a new edit box now enter the following code cmd.exe "%1" in Value data  as shown in above screen shot.
8) Now click on OK and close the registry.
9) Done! 
10 ) Now you can open the command prompt any where in the windows folders and start your work faster.

For more details click HERE