Using Command Prompt from Any Directory
|
Stumble it!Windows in it’s default setting doesn’t allow you to CMD from a specific folder by “Right-click”, or any other reasonably easy way. Even doing trivial tasks like moving from one folder to another is no easy task. The best way to do this would be go to Starts –> Run –> CMD –> Ok; than browse to your desired folder. Or you could put a cmd.exe in every single folder. None of the options are very convenient.

We could do a little registry hack to make “CMD Here” option appear in every folder by a simple right click, and it will prompt from the desired folder, like this.

For this hack we have to edit the registry. Go to Start –> Run –> Regedit.
The entry that we will edit is located under, HKEY_CLASSES_ROOT\ Directory\shell, we will navigate into that folder and add a new key called “command”, edit the entry and call it whatever you want. I named it “CMD Here”, which is what it will say when you right click a folder.

Now create another key right under the “command” key with the same name. But the value for this entry would be cmd.exe /k “cd %L, basically it is calling cmd from the given folder.

That’s it! Just close the Regedit window and any other explorer window open. Open a new explorer window and you will see this new option to open command prompt from that folder by right click. If you are a heavy command prompt user you will find this option very useful.
Source: http://www.windowhaxor.net/
\\ tags: CMD, Command Prompt

(1 votes, average: 4.00 out of 5)