Recently i was working on my java project which requires to use command prompt more frequently than ever before. But its really becomes boring to "cd blah\blah.." to get to my working directory every time i wanted to test my program. Its not that i was not aware of the fact that command prompt can be added to right click context menu to any folder while we are in GUI [Graphical User Interface] mode.
As far as i remember, i have had an apps called 'powertoys' from Microsoft. But only God knows where it is hiding in my 250GB harddisk [i am not a very disciplined fellow when comes to organizing things in order when it comes to harddisk or my bedroom.]. Yeah, a little goggling and i can find that stuff again but i rather choose to investigate what actually powertoys does under the hood. Because in computing world nothing is as such as magic. So here is the trick add a extra option for opening cmd prompt to folder right click context menus, also on drives and My Computer.
copy what's in the code area to notepad and save as cmd.reg
CODE:
**********************************************************************************
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="Command Prompt"
[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="cmd.exe /k \"cd %L\""
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="Command Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /k \"cd %L\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\cmd]
@="Command Prompt"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\cmd\command]
@="cmd.exe /k \"cd %L\""
**********************************************************************************
Double click on cmd.reg and merge it into registry. Maybe you need to restart computer to see the effect. I hope, you will also find some usefulness of the newly added option.
***Those who want to do it more easy way rather than editing registry,Download and install a free copy of Microsoft's "Open Command Window Here" PowerToy from http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
WISE WORDS:Each one sees what he carries in his heart.
No comments:
Post a Comment