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