DOS box opens with .....

Dell / Dell dxp051...
August 13, 2009 at 07:05:25
Specs: Microsoft Windows XP Professional, 2.793 GHz / 3070 MB
When I go to run type cmd the MS-DOS box opens in C:\Documnets and Settings\My Name> ? My question is how do I get it to open in the root of drive C ? I want it to open and display C:\ Anyone familar with using the DOS commands and can help me out it would be greatly appreciated . I already tried the CHDIR command ,however Iam missing something in order to get it to switch to just C:\ ?
Thanks Nick

See More: DOS box opens with .....

Report •


#1
August 13, 2009 at 08:14:29
Its CD in DOS. To get to the root directory type...

CD\

and it will switch to the root.


Report •

#2
August 13, 2009 at 08:15:46
... (type) CD\ [ENTER]

.


... CD.. (+two dots) moves you back one Directory


.....beat me to the post "ace_omega" ..lol!

... Posting is provided "AS IS" with no warranties
http://img515.imageshack.us/img515/...
Grrrr... ....more


Report •

#3
August 13, 2009 at 08:24:42
Hi Nick

You can change the default home directory or default directory "C:\Documnets and Settings\My Name>" by editing your registry settings.

Take backup of your registry before editing it so incase anything goes wrong you can always revert back to origional

Here is what you have to do...
1. Click Start, Run and type Regedit.exe
2. Find the following PATH
HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor (for only your user)
or
HKEY_Local_Machine \Software \ Microsoft \ Command Processor (for every user on the machine)

3.In the right-hand column, double-click Autorun and set the Value Data as the path you desire. In your case it should be like this
"CD /d C:\" (without qoutes).

Changes take effect immediately so you can check straightaway.


Report •

Related Solutions

#4
August 13, 2009 at 08:33:21
HIGHLY recommend you do not do as hiteshthappa
suggests. What you want does not require a registry edit and its associated risks.

Proper way is as follows;

Go to Accessories
Right mouse click on Command Prompt and select copy
Right mouse click on the Desktop and select paste.
Right mouse click on the desktop Command Prompt and go to Properties
Change the Start In from %homedrive%%homepath% to just %homedrive%
Save the settings.

Now when you double click on this command prompt icon you will be at c:\ or whatever your homedrive letter is.


Report •

#5
August 15, 2009 at 05:21:33
Ho to All ,and I want to thank you for your replies ! I tried wanderer's suggestion of changing the %HOMEDRIVE%%HOMEPATH% to %HOMEDRIVE% only in DOS properties however it still opened the same . The simple use of he CD\ did the trick ,I was attempting to use it B/4 I posted ,I just did not type it in correctly. I never attemppted the registry change ,and since I can get the result I desire by simply entering the command CD\ ,I will stay with that !
Again Thanks to All,
Nick


Report •

#6
August 16, 2009 at 23:20:49
Hi

It's good that you solved the problem.
I suggested the resgistry change because from your question it seemed you needed a permanent solution.
Thanks to Wanderer too because he gave a new tip which i didnot know.


Report •


Ask Question