Open CMD from a specific folder in Windows Explorer

By Detector | 22 November 2008



Windows setting doesn’t allow you to open CMD from a specific folder by “Right-click”. One way to do this is: (1) Start –> Run –> CMD –> Ok; (2) browse to your desired folder with CD command. The other way is to put a cmd.exe in every single folder. But, those two methods are very convenient.

In this post I will explain you how to make “Open in CMD” option to appear in every folder by a simple mouse right click on that specific folder. With a little registry change (some will call it hack) the result will be: prompt from the desired folder.


To succeed in this follow next steps:

  1. Go to Start –> Run –> Regedit.
  2. In registry navigate to HKEY_CLASSES_ROOT\Directory\shell
  3. Add a new key called “command”, edit the entry and call it “Open in CMD”, that will be the name of the option when you right click a folder.

  4. Now create another key right under the “command” key with the same name. The value would be: cmd.exe /k “cd %L

  5. Close the Regedit window and now you can open command prompt from that folder by right click.

Tags | , , ,

| |

One Response to “Open CMD from a specific folder in Windows Explorer”

  1. Herny says:

    You can get this feature and more with Daphne windows explorer integration. You can copy filenames and paths to clipboard, execute a program with arguments on the fly and google with just one click.
    It’s pretty useful: http://www.drk.com.ar/daphne.php






Archives

Add to Technorati Favorites
website stats
TwitterCounter for @ukion