Saturday, November 20, 2010

How do you change the default directory of ms-dos?

I want that every time I open command prompt, instead of C:\%26gt;,

C:\Documents and Settings\User%26gt; appears.



I don't like using ';cd'; every time just to change the current directory.How do you change the default directory of ms-dos?
Go to the properties of the link and look at the shortcut info. Change the ';Start In'; to %USERPROFILE%.How do you change the default directory of ms-dos?
* Click Start, Run and type Regedit.exe

* Navigate to the following branch:



HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor



* In the right-pane, double-click Autorun and set the startup folder path as its data, preceded by a CD\. If Autorun is missing, create a new REG_SZ (String Value) in the above location.
Right click on ';Command Prompt';, choose ';Properties';, and change the listing for ';Start in'; to:



C:\



Click ';OK';, and you are in business! From now on every time you select Command Prompt, you will start in the root directory, C:
The easiest way:

1) Create a shortcut to cmd.exe (in the Windows/system32 or WINNT/system32 directory.

2) Right click on the shortcut and select Properties.

3) Under ';Start In'; put c:\

4) Click ';OK';



Now when you click on the shortcut you'll start in C:\

No comments:

Post a Comment