中国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-12 18:27
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Ask about the problem of CD jumping directories
Printable Version  2,031 / 7
Floor1 tiankongshang Posted 2008-11-05 17:39
初级用户 Posts 11 Credits 24
Why can't I jump to the text under drive D by using `cd d:\text` in the root directory of drive C now?
Floor2 HAT Posted 2008-11-05 18:08
版主 Posts 5,017 Credits 9,023
Floor3 tiankongshang Posted 2008-11-05 21:46
初级用户 Posts 11 Credits 24
Can the friend of the 2nd floor answer again what does cd /d mean? I check the reference book and there is no /d switch for cd
Floor4 DOSforever Posted 2008-11-05 22:24
金牌会员 Posts 2,239 Credits 4,639
There is no /d switch under DOS. Under DOS (if using your own COMMAND.COM), you can't directly change the drive letter and directory at the same time. If you do "cd d:\text", and d: is already in the \text directory, you still need to type d: to do so.
Floor5 HAT Posted 2008-11-06 01:07
版主 Posts 5,017 Credits 9,023
The reason is in floor 4.
/d is a switch only available in cmd.
Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.

C:\Test>cd /?
Displays the name of or changes the current directory.

CHDIR
CHDIR
CD
CD

.. Specifies that you want to change to the parent directory.

Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.

Use the /D switch to change current drive in addition to changing current
directory for a drive.
Floor6 wwmmc Posted 2008-11-27 13:48
初级用户 Posts 62 Credits 35
Yeah, only in cmd there is the /d parameter!
Floor7 alchemist Posted 2008-11-27 16:55
高级用户 Posts 193 Credits 652
xcopy also only has the /i switch under cmd
Floor8 Qtwdftxvt Posted 2008-11-27 16:59
初级用户 Posts 101 Credits 190
It's not enough to just transfer the directory; you also need to transfer the drive letter.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023