Command Prompt on Right-Click

Command Prompt on right click.
Programmersneed to launch a command prompt window every once in a while to execute somedos/shell commands. The problem is, when a command prompt window launched, the defaultpath is normally the system path or the user profile's path. The users willthen have to do all the "cd" commands to change the directories tothe path he/she wants.
Thistrick shows you how to add an option called "Command Prompt" when youright-click on a folder in Windows.
With this option, a Command Prompt Windowwill launch and its current directory will be the path to the folder you'veselected, as shown below.
CMD with current directory
Steps to follow :-
  1. Start > Run
  2. Enter "regedit" and hit Enter
  3. Expand to "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell"
  4. Right-click on "shell" and select New > Key
  5. Make sure a new key is created under "shell". Change the name of this key to "Command Prompt"
  6. Right-click on this new key "Command Prompt" and select New > Key
  7. Change the name of this key to "command" 
  8. Here's what we should have:-
Create new regsitry key in shell
9. Double-click on the "(Default)" text on the right window to bring up the edit box.
10. Enter this text into the Value Data field: 
11. cmd.exe "%1"
Click OK and close the registry.

* Sharing information is the key to learn more, hope you understand it.

0 Response to "Command Prompt on Right-Click"

Post a Comment