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 12:33
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » What’s the difference between these two commands? View 1,341 Replies 5
Original Poster Posted 2003-03-08 00:00 ·  中国 河南 信阳 联通
金牌会员
★★★★
龙哥DOS
Credits 4,289
Posts 1,501
Joined 2003-02-23 00:00
23-year member
UID 983
Gender Male
From 河南省
Status Offline
What’s the difference between these two commands:
cd windows and cd \windows
I hope someone can explain, thanks!
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++ ☆☆☆ 中国DOS联盟成员 ☆☆☆ C++
C++ ★★★ 爱提问的红色狂想 ★★★ C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Floor 2 Posted 2003-03-08 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
cd windows enters the WINDOWS subdirectory under the current directory. If there is no WINDOWS subdirectory under the current directory, it will give an error.

cd \windows enters the WINDOWS subdirectory under the root directory of the current drive.

Generally speaking, WINDOWS is usually installed in c:\windows. If you are currently in the root directory of drive C, then the two commands are equivalent, but if you are in other directories, only the second command can enter the WINDOWS directory.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 3 Posted 2003-03-08 00:00 ·  中国 广东 佛山 顺德区 电信
中级用户
Credits 223
Posts 36
Joined 2003-01-08 00:00
23-year member
UID 707
Gender Male
Status Offline
In cd windows, the directory windows is what is called a relative path.
And in cd \windows, the directory windows is what is called an absolute path.
Floor 4 Posted 2003-03-09 00:00 ·  中国 河南 信阳 联通
金牌会员
★★★★
龙哥DOS
Credits 4,289
Posts 1,501
Joined 2003-02-23 00:00
23-year member
UID 983
Gender Male
From 河南省
Status Offline
Thanks
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++ ☆☆☆ 中国DOS联盟成员 ☆☆☆ C++
C++ ★★★ 爱提问的红色狂想 ★★★ C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Floor 5 Posted 2003-03-09 00:00 ·  中国 浙江 宁波 联通
银牌会员
★★★
Credits 1,001
Posts 309
Joined 2002-11-19 00:00
23-year member
UID 283
Gender Male
Status Offline
It can be regarded as 2 commands

cd \
cd windows
Floor 6 Posted 2003-04-14 00:00 ·  中国 福建 福州 电信
初级用户
平凡吧
Credits 120
Posts 4
Joined 2003-04-14 00:00
23-year member
UID 1523
Gender Female
Status Offline
I agree with 论坛游侠
云朵是一种风景,眼泪也是一种晶莹,生命的美丽常常在于过程。
Forum Jump: