中国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-13 20:02
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Skills of a single sentence: . .. and \
Printable Version  4,214 / 16
Floor1 MYS Posted 2002-11-18 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
. In DOS, both. .. and \ refer to directories.
. refers to the current directory. For example, "del ." is to delete all files in the current directory, and "copy . a:" is to copy all files in the current directory to drive A.
.. refers to the parent directory of the current directory. For example, "cd .." can go to the parent directory of the current directory, and "copy a .." is to copy file a to the parent directory.
The single "\" refers to the root directory of the current disk. For example, "dir \"" will list the files in the root directory of this disk. Of course, "cd \windows" is to enter the windows sub - directory under the root directory of the current disk.
Floor2 xufeixufei Posted 2006-06-25 13:50
初级用户 Posts 11 Credits 30 From 湖北公安
Support, that's really well said.
Floor3 electronixtar Posted 2006-06-25 14:27
铂金会员 Posts 2,672 Credits 7,493
The command `rd \ /s /q` is equivalent to format, everyone don't try it, I've done it many times~
Floor4 xjmxjm1234 Posted 2006-06-25 19:40
中级用户 Posts 166 Credits 361
It seems a bit wrong. The "." in "del ." and "copy . a:" is an abbreviation of "*.*"
Floor5 不得不爱 Posted 2006-06-26 09:08
超级版主 Posts 2,044 Credits 5,310 From 四川南充
Originally posted by xjmxjm1234 at 2006-6-25 19:40:
It seems a bit incorrect.
The "." in "del ." and "copy . a:" is an abbreviation of "*.*"


*.* is just all the files in the current directory!
Floor6 xjmxjm1234 Posted 2006-06-26 22:07
中级用户 Posts 166 Credits 361
But he said:
The "." in "del ." and "copy . a:" refers to the current directory
Floor7 Michael Posted 2006-06-26 22:16
钻石会员 Posts 3,041 Credits 10,056
The same, the "\" can be understood as the root directory, or it can be understood as \*.*. The "." is the same.
Floor8 luoxinxin1988 Posted 2006-07-05 18:55
初级用户 Posts 48 Credits 190
Just came to take a look.
Floor9 sing851229 Posted 2006-07-07 02:37
新手上路 Posts 4 Credits 8
Concise and clear, I like it!
Floor10 buddiyar Posted 2006-07-09 17:46
初级用户 Posts 75 Credits 160
Then what's going on with the "." in findstr? Can anyone tell me? Thanks in advance.
Floor11 shijianxin Posted 2006-07-13 13:15
初级用户 Posts 52 Credits 115
Not bad! This is relatively simple!
Floor12 bagpipe Posted 2006-07-13 13:35
银牌会员 Posts 425 Credits 1,144 From 北京
Floor 10: The. in FINDSTR is one of its regular expression usages, which represents any character, excluding empty characters
Floor13 qq82015930 Posted 2006-09-24 03:33
中级用户 Posts 109 Credits 235
Learning
Floor14 lufei1077 Posted 2006-09-24 08:58
初级用户 Posts 16 Credits 34 From 湖北
Support the LZ
BitDefender AntiVirus v10 Standard Edition + Chinese Language Patch
Floor15 deda20 Posted 2006-09-27 06:03
新手上路 Posts 2 Credits 3
I learned a few things.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023