中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-18 01:24
47,814 topics / 349,907 posts / today 4 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » How to make CMD enter the root directory of drive C
Printable Version  6,388 / 8
Floor1 silkroad Posted 2006-03-28 09:25
新手上路 Posts 1 Credits 6
I'm using the Windows 2000 operating system. Now when I type CMD, it defaults to entering c:\winnt\system32. Is there any way to directly go to c:\?
Floor2 bagpipe Posted 2006-03-28 10:53
银牌会员 Posts 425 Credits 1,144 From 北京
Searching "Change the default path of DOS" in GOOGLE will naturally reveal the answer .........................
Floor3 doscc Posted 2006-03-29 10:11
中级用户 Posts 93 Credits 256 From 广东
Open the cmd.
Press Enter after typing "cd\"
That's it.
Floor4 kingchain Posted 2006-03-29 11:02
初级用户 Posts 57 Credits 133
I used to know, it seems like modifying REGEDIT, but then I forgot. What the LZ means is that every time you open CMD, it directly jumps to c:\. I hope someone who knows can tell me.
Floor5 3742668 Posted 2006-03-29 11:11
荣誉版主 Posts 718 Credits 2,013
1. Right - click on the desktop, create a shortcut, and enter the command line: cmd /k cd\
2. Create a batch file c:\setup.bat with the content @cd\, then modify the AutoRun value under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor in the registry to c:\setup.bat... Or directly change the autorun value to cd\, but I prefer to create a batch file so that I can set up the environment I like.

[ Last edited by 3742668 on 2006 - 3 - 29 at 11:16 ]
Floor6 Michael Posted 2006-03-29 22:21
钻石会员 Posts 3,041 Credits 10,056
Searching with the keywords from the 2nd floor indeed can find the solution.
Floor7 zjnbwdj Posted 2006-03-30 22:55
中级用户 Posts 137 Credits 300
Put a shortcut to CMD in the Quick Launch bar or on the desktop. The target is %windir%\system32\cmd.exe, and change the start in to C:\. That's how I've always used it. My start in is E:\DOS

PS: The default path of CMD in 2000 seems to be D:\Documents and Settings\username>
Floor8 JonePeng Posted 2006-03-31 00:06
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
Originally posted by zjnbwdj at 2006-3-30 22:55:
The default path of CMD in 2000 seems to be D:\Documents and Settings\username>

Yes, the default path of CMD in Win2000, XP, and 2003 is like this. But I don't understand how useful it is for CMD to be in this directory?! I always like to change the default path to %SystemRoot%\System32

[ Last edited by JonePeng on 2006-3-31 at 00:07 ]
Floor9 3742668 Posted 2006-03-31 07:05
荣誉版主 Posts 718 Credits 2,013
I all change to the desktop, so that I don't need to open the directory when testing.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023