***“ Command
Prompt on Right-Click ”***
Many
computer users, specially the programmers, need to launch a command prompt
window every once in a while to execute some dos/shell commands. The problem
is, when a command prompt window launched, the default path is normally the
system path or the user profile's path. The users will then have to do all the
"cd" commands to change the directories to the path he/she wants.
This
trick shows you how to add an option called "Command Prompt" when you
right-click on a folder in Windows. With this option, a Command Prompt Window
will launch and its current directory will be the path to the folder you've
selected.
=====================================================================
Use this trick at your own risk.
Here's what you'll get:
Ø
Start > Run
Ø Enter "regedit" and hit Enter Expand to
Ø Make sure a new key is created under "shell".
Change the name of this key to "Command Prompt".
Ø Right-click on this new key "Command Prompt"
and select New > Key.
Ø Change the name of this key to "command".
Ø Here's what we should have:
Ø Double-click on the "(Default)" text on the right
window to bring up the edit box.
Ø Enter this text into the Value Data field:
cmd.exe "%1"
cmd.exe "%1"
Ø Click OK and close the
registry.
=============================================================
No comments:
Post a Comment