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-13 19:05
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Skills of a single sentence: . .. and \ View 4,210 Replies 16
Original Poster Posted 2002-11-18 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
. 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.
我的网志
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 2 Posted 2006-06-25 13:50 ·  中国 上海 电信
初级用户
Credits 30
Posts 11
Joined 2006-06-17 21:50
20-year member
UID 57182
From 湖北公安
Status Offline
Support, that's really well said.
Floor 3 Posted 2006-06-25 14:27 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
The command `rd \ /s /q` is equivalent to format, everyone don't try it, I've done it many times~

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 4 Posted 2006-06-25 19:40 ·  中国 上海 电信
中级用户
★★
论坛第一菜鸟
Credits 361
Posts 166
Joined 2006-04-15 13:23
20-year member
UID 53870
Status Offline
It seems a bit wrong. The "." in "del ." and "copy . a:" is an abbreviation of "*.*"
Diskette Operating System
Floor 5 Posted 2006-06-26 09:08 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
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!
Floor 6 Posted 2006-06-26 22:07 ·  中国 上海 浦东新区 电信
中级用户
★★
论坛第一菜鸟
Credits 361
Posts 166
Joined 2006-04-15 13:23
20-year member
UID 53870
Status Offline
But he said:
The "." in "del ." and "copy . a:" refers to the current directory
Diskette Operating System
Floor 7 Posted 2006-06-26 22:16 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,056
Posts 3,041
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
The same, the "\" can be understood as the root directory, or it can be understood as \*.*. The "." is the same.
简单就是美
Floor 8 Posted 2006-07-05 18:55 ·  中国 广西 玉林 电信
初级用户
Credits 190
Posts 48
Joined 2006-06-05 12:53
20-year member
UID 56570
Gender Male
Status Offline
Just came to take a look.
Floor 9 Posted 2006-07-07 02:37 ·  中国 河北 石家庄 联通
新手上路
Credits 8
Posts 4
Joined 2006-07-06 01:59
20-year member
UID 58098
Status Offline
Concise and clear, I like it!
Floor 10 Posted 2006-07-09 17:46 ·  中国 江苏 苏州 电信
初级用户
★★
Credits 160
Posts 75
Joined 2006-06-28 01:07
20-year member
UID 57661
Gender Male
Status Offline
Then what's going on with the "." in findstr? Can anyone tell me? Thanks in advance.
Floor 11 Posted 2006-07-13 13:15 ·  中国 广东 东莞 电信
初级用户
★★
Credits 115
Posts 52
Joined 2005-08-07 22:10
21-year member
UID 41435
Gender Male
Status Offline
Not bad! This is relatively simple!
愿你们永远开心
Floor 12 Posted 2006-07-13 13:35 ·  中国 北京 联通
银牌会员
★★★
DOS联盟捡破烂的
Credits 1,144
Posts 425
Joined 2005-10-20 00:00
20-year member
UID 43784
From 北京
Status Offline
Floor 10: The. in FINDSTR is one of its regular expression usages, which represents any character, excluding empty characters
Floor 13 Posted 2006-09-24 03:33 ·  中国 重庆 重庆壁山县 联通
中级用户
★★
Credits 235
Posts 109
Joined 2006-08-24 00:52
19-year member
UID 61161
Gender Male
Status Offline
Learning
Floor 14 Posted 2006-09-24 08:58 ·  中国 广东 深圳 南山区 电信
初级用户
Credits 34
Posts 16
Joined 2006-09-22 02:50
19-year member
UID 63316
Gender Male
From 湖北
Status Offline
Support the LZ
BitDefender AntiVirus v10 Standard Edition + Chinese Language Patch
++++++++++++++++++
+++明天的事今天做++++
+++今天的事现在做++++
Floor 15 Posted 2006-09-27 06:03 ·  中国 江苏 苏州 电信
新手上路
Credits 3
Posts 2
Joined 2006-09-25 01:18
19-year member
UID 63571
Status Offline
I learned a few things.
Forum Jump: