Tuesday, April 7, 2009

To get command prompt on the right click

1. Open regedit.exe from Run menu

2. Navigate to

HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell

and create a key called "Command Prompt".

3. Set the default string to "Command Prompt" or simply "CMD", since this text will come when you right click on a 
FOLDER.

4. Create a new key within the newly created command prompt named "command," and set the default string to
cmd.exe /k pushd %1

5. Refresh By pressing F5.

PS: This works on NT based System. Also, the right click should be on a 
FOLDER. If you open the folder and the click on the screen area, then it won't work.

1 comment: