China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 19:27
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Ask about the problem of CD jumping directories View 2,032 Replies 7
Original Poster Posted 2008-11-05 17:39 ·  中国 河南 郑州 联通
初级用户
Credits 24
Posts 11
Joined 2008-10-28 20:24
17-year member
UID 129393
Gender Male
Status Offline
Why can't I jump to the text under drive D by using `cd d:\text` in the root directory of drive C now?
Floor 2 Posted 2008-11-05 18:08 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
cd /d D:\text
Floor 3 Posted 2008-11-05 21:46 ·  中国 河南 郑州 联通
初级用户
Credits 24
Posts 11
Joined 2008-10-28 20:24
17-year member
UID 129393
Gender Male
Status Offline
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
Floor 4 Posted 2008-11-05 22:24 ·  中国 上海 虹口区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
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.
Floor 5 Posted 2008-11-06 01:07 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
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.
Floor 6 Posted 2008-11-27 13:48 ·  中国 上海 黄浦区 电信
初级用户
★★
Credits 35
Posts 62
Joined 2008-10-12 21:46
17-year member
UID 128197
Gender Male
Status Offline
Yeah, only in cmd there is the /d parameter!
Floor 7 Posted 2008-11-27 16:55 ·  中国 北京 联通
高级用户
★★
Credits 652
Posts 193
Joined 2005-09-25 00:00
20-year member
UID 42822
Status Offline
xcopy also only has the /i switch under cmd
ディスケット オペレーティン グシステム
Floor 8 Posted 2008-11-27 16:59 ·  中国 黑龙江 大兴安岭地区 联通
初级用户
★★
Credits 190
Posts 101
Joined 2008-11-23 14:58
17-year member
UID 131841
Gender Male
Status Offline
It's not enough to just transfer the directory; you also need to transfer the drive letter.
Forum Jump: