Running into Command Prompt from Explorer

Here is how to add Command Prompt to the right click menu on a folder in Windows Explorer.

Create a text file, type in the following lines and save it as addprompt.reg.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command Prompt:"

[HKEY_CLASSES_ROOT\Directory\shell\Command\Command]
@="cmd.exe /k cd %1"

Save this out and double click the file.



I wonder if there is a way of doing the same for a bat file. What I want is -- that i should be able to right click on it and say run under command prompt.

No comments: