blog@sansor

Windows: Open Directory with Command Prompt

Command Prompt

its really hard to reach a directory in windows using a command prompt. It quite boring to type cd command againa and again.. Ok Ok you are smarter you can copy paste the whole path. :) .

Here is a simple solution.

Windows Registry Editor Version 5.00
Made By Sanjay Kumar
[HKEY_CLASSES_ROOT\Directory\shell\Command]
@=”Open In Command &Prompt”
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@=”cmd.exe \\\”%1\\\”"

Copy paste these lines and save it as “command.reg”.

Purpose of this registry file:
Every time you need not to write these cd commands. Just go in the directory and right click and choose the option “Open In Command Prompt”. It will open the directory directly into command prompt.

Installation:
Double click on this file and install it. It will ask something related to registry key. Don’t worry it won’t harm your computer. When you are finished with the installation click on any directory anywhere in the system. When you right click on the directory it will show an extra option “Open With Command Prompt”. You change the option text as you wish. Change line number 4 for that.

Where it saves the registry key?
Open run command
Write “regedit” and enter.
HKEY_CLASSES_ROOT\Directory\shell\Command\command

3 Responses

Subscribe to comments with RSS.

  1. Ria said, on April 17, 2008 at 9:40 am

    Hello…
    I am Ria Sethi..I need your advise
    I have been searching in vain for a simple solution to my problem.. I cannot open my C or D drive !!.. each time I double click on it, a window opens asking me “Which program do you want to open this with ?” and a list of programs like MS Word, Adobe, VLC etc feature on the list ?..
    I have been searching on Forums, websites.. the most standard reply i get is that I have malware infection.. They dont give me the solution for it !!!…
    please advise… my email is riaseth87@gmail.com

  2. qerh said, on April 24, 2009 at 11:33 am

    dh

  3. betterthanu said, on October 24, 2009 at 10:44 am

    it doesn’t work … try this:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Directory\shell\command]
    @=”Open In Command &Prompt”

    [HKEY_CLASSES_ROOT\Directory\shell\command\command]
    @=”cmd.exe /k \”cd %L\”"


Leave a Reply