中国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 13:19
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » What’s the difference between these two commands?
Printable Version  1,342 / 5
Floor1 红色狂想 Posted 2003-03-08 00:00
金牌会员 Posts 1,501 Credits 4,289 From 河南省
What’s the difference between these two commands:
cd windows and cd \windows
I hope someone can explain, thanks!
Floor2 MYS Posted 2003-03-08 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
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.
Floor3 laoje Posted 2003-03-08 00:00
中级用户 Posts 36 Credits 223
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.
Floor4 红色狂想 Posted 2003-03-09 00:00
金牌会员 Posts 1,501 Credits 4,289 From 河南省
Thanks
Floor5 imp Posted 2003-03-09 00:00
银牌会员 Posts 309 Credits 1,001
It can be regarded as 2 commands

cd \
cd windows
Floor6 pingfan5888 Posted 2003-04-14 00:00
初级用户 Posts 4 Credits 120
I agree with 论坛游侠
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023