|
MYS
元老会员
        
积分 5170
发帖 1637
注册 2002-10-16 来自 广东佛山
状态 离线
|
『楼 主』:
一句话的技巧之. .. 和 \
使用 LLM 解释/回答一下
. .. 和 \在DOS下都是指目录
.指的是当前目录 如 “del .” 就是删除当前目录下的所有文件 copy . a: 就是将当前目录全部文件复制到A盘
..指的是本目录的父目录 如“cd ..”就可转到本目录的父目录中 copy a ..就把文件a复制到父目录
单独的"\"指的是当前磁盘的根目录,如“dir \”将会列出本盘根目录的文件。当然cd \windows 就是进入当前磁盘根目录下的windows子目录了。
. 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
|
|
2002-11-18 00:00 |
|
|
xufeixufei
初级用户
 
积分 30
发帖 11
注册 2006-6-17 来自 湖北公安
状态 离线
|
|
2006-6-25 13:50 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
rd \ /s /q 就相当于 format了,大家勿试,我遭过n次了~~~
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'>" |
|
2006-6-25 14:27 |
|
|
xjmxjm1234
中级用户
   论坛第一菜鸟
积分 361
发帖 166
注册 2006-4-15
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
好象有点不对哦
“del .” 和 “copy . a:” 里的 “.” 是 “*.*” 的缩写
It seems a bit wrong. The "." in "del ." and "copy . a:" is an abbreviation of "*.*"
|

Diskette Operating System |
|
2006-6-25 19:40 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by xjmxjm1234 at 2006-6-25 19:40:
好象有点不对哦
“del .” 和 “copy . a:” 里的 “.” 是 “*.*” 的缩写
*.*不就是当前目录里的所有文件吗!
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!
|

我的网络U盘 我的网络第2个U盘
论坛软件下载链接
灵雨飘零论坛
论坛新手必读,所有人的基本行为准则
刷QQ空间人气、留言的小软件 |
|
2006-6-26 09:08 |
|
|
xjmxjm1234
中级用户
   论坛第一菜鸟
积分 361
发帖 166
注册 2006-4-15
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
可是他说:
“del .” 和 “copy . a:” 里的 “.” 指的是当前目录
But he said:
The "." in "del ." and "copy . a:" refers to the current directory
|

Diskette Operating System |
|
2006-6-26 22:07 |
|
|
Michael
钻石会员
       
积分 10046
发帖 3039
注册 2002-11-11
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
一样的,“\“ 你可以理解为根目录,也可以理解为\*.*嘛。
“.“也一样。
The same, the "\" can be understood as the root directory, or it can be understood as \*.*. The "." is the same.
|

简单就是美 |
|
2006-6-26 22:16 |
|
|
luoxinxin1988
初级用户
 
积分 190
发帖 48
注册 2006-6-5
状态 离线
|
|
2006-7-5 18:55 |
|
|
sing851229
新手上路

积分 8
发帖 4
注册 2006-7-6
状态 离线
|
|
2006-7-7 02:37 |
|
|
buddiyar
初级用户
 
积分 160
发帖 75
注册 2006-6-28
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
那findstr中的"."又是怎么回事呢?
谁能告诉我么
谢过先啊
Then what's going on with the "." in findstr? Can anyone tell me? Thanks in advance.
|
|
2006-7-9 17:46 |
|
|
shijianxin
初级用户
 
积分 115
发帖 52
注册 2005-8-7
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
不错!这样比较简便!
Not bad! This is relatively simple!
|

愿你们永远开心 |
|
2006-7-13 13:15 |
|
|
bagpipe
银牌会员
     DOS联盟捡破烂的
积分 1144
发帖 425
注册 2005-10-20 来自 北京
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
第 10 楼:FINDSTR 中的 . 是他正则表达式的用法之一,表示任何字符,不包括空字符
Floor 10: The. in FINDSTR is one of its regular expression usages, which represents any character, excluding empty characters
|
|
2006-7-13 13:35 |
|
|
qq82015930
中级用户
  
积分 235
发帖 109
注册 2006-8-24
状态 离线
|
|
2006-9-24 03:33 |
|
|
lufei1077
初级用户
 
积分 34
发帖 16
注册 2006-9-22 来自 湖北
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
支持楼主
BitDefender AntiVirus v10 标准版+汉化补丁
Support the LZ
BitDefender AntiVirus v10 Standard Edition + Chinese Language Patch
|

++++++++++++++++++
+++明天的事今天做++++
+++今天的事现在做++++
|
|
2006-9-24 08:58 |
|
|
deda20
新手上路

积分 3
发帖 2
注册 2006-9-25
状态 离线
|
|
2006-9-27 06:03 |
|