How to Open Command Prompt at a Particular Folder Directly from the Folder’s Context Menu

Posted by Mayur Somani on December 30th, 2008 in Coders Corner, Daily Hacks, Productivity Hacks

How to Open Command Prompt at a Particular Folder Directly from the Folders Context Menu

Its sometimes really annoying to reach a directory in windows using a command prompt. Typing cd again and again is really boring.

Here is a simple solution.

Copy paste the following lines and save them as “command.reg”.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryshellCommand]
@=”Open In Command &Prompt”
[HKEY_CLASSES_ROOTDirectoryshellCommandcommand]
@=”cmd.exe \”%1\””

Now simply double click on this file to put these settings in registry. After this whenever you’ll right click on any directory, it will show an extra option “Open With Command Prompt”. You can also change this text simply by modifying the fourth line in above script.

10 Responses to “How to Open Command Prompt at a Particular Folder Directly from the Folder’s Context Menu”

  1. storm Says:

    thanksf for info

  2. Timur I. Alhimenkov Says:

    Great! Thank you very much!
    I always wanted to write in my site something like that. Can I take part of your post to my blog?
    Of course, I will add backlink?

    Regards, Timur I. Alhimenkov

  3. Mayur Somani Says:

    Sure :)

  4. unrelteratt Says:

    Hi. Your site displays incorrectly in Firefox, but content excellent! Thank you for your wise words:)

  5. Mayur Somani Says:

    I am using firefox as well and the site works fine… Can you please tell me what exactly is wrong…

    Thanks for feedback.

  6. stroi-t Says:

    All was pleasant, but could not subscribe on rss.

  7. Mayur Somani Says:

    @stroi-t

    Please try the links in the left sidebar. I think the issue is with your rss reader.

  8. aidepeand Says:

    мда. +1 !

  9. aidepeand Says:

    hmm… amazing :)

  10. enlasenet Says:

    hmm… bookmarked :)

Leave a Reply