Command Prompt In Any Directory

 

 






Registry Fix Method

Here's how you can get the command prompt to appear in any directory you want... instantly!

  1. Open up Notepad and type in the following text (as shown in the picture below) :-

Windows Registry Editor Version 5.00

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


   

  1. Save the file with the .reg extension, instead of the usual .txt extension. In this example, the file is saved as Command.reg.
     
  2. Now, double-click the saved file. Again, we are using Command.reg as an example.


  

  1. A pop-up message (shown below) will appear. Click on Yes to allow the contents of the Command.reg file to be added to the registry.


  

  1. A confirmation pop-up screen will announce that the information in the Command.reg file has been successfully entered into the registry. Just click OK to continue.


   

  1. Now, open up Windows Explorer.
     
  2. If you right-click on any directory, you will notice a Command Prompt option.


   

  1. Clicking on that Command Prompt option will bring up the Command Prompt in that directory itself.
      
  2. Here's what happened when I clicked on the Command Prompt option with the All Users directory selected :-


   

  1. See? Using this method, I'm immediately transported to the D:\Documents and Settings\All Users\ directory without even typing a single letter of that path!
     
  2. So, from now on, if you want a command prompt to open up showing a directory, just navigate to that directory using Windows Explorer, right-click and select Command Prompt! :)

   

    

Notes

  • You can delete the registry file (eg. Command.reg) after use because once the information has been added to the registry, it will stick there until you remove it.

    

    

Comments?

If you have a comment or question about this tip, please post them here.

Thanks for your time and I hope this tip has helped you some! :)

Adrian Wong
Adrian's Rojak Pot
http://www.rojakpot.com/
http://www.adriansrojakpot.com/

 

 
 

 

 
     
   

 

 
 

 
   

 

 
 
Last Updated 07-09-2001

All trademarks used are properties of their respective owners.
Copyright © 1998-2000 Adrian Wong. All rights reserved.

 
Visit the new Tech ARP @ http://www.techarp.com/ !