|
规格捷径,借以反应和重定向
捷径
一批民政司令部之间航行时承认某些捷径名录.其中最著名的有:
Shortcut捷径 |
Why to use
it为什么使用 |
. |
to refer to the
current directory指当前目录 |
.. |
to refer to the
parent directory家长参考目录 |
\ |
to refer to the
root directory of the current drive.根目录指当前驱动. |
drive :驾驶: |
to refer to the
current directory on drive指当前目录驱动 |
让我们尝试去了解它的帮助例子.如果目前名录>三:观光 c:\windows\java\notes, then dir c: at the a:\> prompt will list the files in c:\windows\java\notes
- 如果当前和教程
Command指挥 |
. |
.. |
... |
\ |
CD影音
or或者
CHDIRchdir |
Nothing.一无所有.
Current
directory stays as: c:\windows\
java\notes目前停留名录为:丙:\窗户\爪哇\纸币 |
Change to
parent directory: c:\windows\java改变父母名录:三:\窗户\爪哇 |
Change to
parent's parent directory:改变父母父母目录:
c:\windows丙:\视窗 |
Change to root
directory: c:\改变根目录:丙:\ |
DIR迪尔 |
Displays
contents of current directory:此次展出内容目录:
c:\windows\
java\notes丙:\窗户\爪哇\纸币 |
Displays
contents of parent directory: c:\windows\java展出内容父母目录:丙:\窗户\爪哇 |
Displays
contents of parent's parent directory: c:\windows展出内容家长父母目录:丙:\视窗 |
Displays
contents of root directory: c:\展出内容根目录:丙:\ |
- If the current drive and directory is c:\, then:
Command指挥 |
. |
.. |
... |
\ |
CD影音
(ChDir)(chdir) |
Nothing -
current directory stays as: c:\无电流名录停留为:丙:\ |
Error
message:错误讯息:
"Invalid
Directory""无效目录" |
Error
message:错误讯息:
"Invalid
Directory""无效目录" |
Nothing.一无所有.
Current
directory stays as: c:\目前停留名录为:丙:\ |
DIR迪尔 |
Displays
contents of current directory: c:\此次展出内容目录:丙:\ |
Error message:
"Invalid Directory"错误信息:"无效目录" |
Displays
directories and extension less files of current
directory显示器通讯录及扩建现有档案目录少 |
Displays
contents of root directory: c:\展出内容根目录:丙:\ |
Wildcards
像许多指挥民政、attrib、仿造、del、deltree等,接受使用"借以反应"(*、?) .普遍而言,*指多字? 一个字指一个单一档案或目录名称.
这就是为什么我们不能使用这些人物的名字任何档案.这些特殊人物/\:*?"|不应试图插入一个档案名称. 下表使用借以反应:
Wildcard外卡 |
What it
does究竟是什么 |
*.* |
All files with
all extensions.所有档案与所有分机. |
*data*.**数据*.* |
All files with
"data" anywhere in its name.所有档案"资料"地方名称. |
*array.*数组** |
All files with
names ending with "array"所有档案名称与结尾"阵" |
note?.cpp注?.柬埔寨 |
All files named
"note" plus one character and with .CPP
extensions.所有档案命名为"注"字,加一.柬埔寨分机. This file may
be note1.cpp, but not
note.cpp.这个档案可能note1.cpp,但不是note.cpp. |
?t*.*?笔*.* |
All files with
an "t" as second letter in their
names所有档案的"笔"作为自己的名字在第二封信 |
应当指出,并非所有的指挥处理借以反应一样. 例如迪尔迪尔**del*.*将被视为同义词,但只删除档案而未延期.
一个密闭空间由引号("")是接受为有效规范了档案整理、del但相当不同.
EDIT will open a file using the name of the current directory. Thus if the current directory is D:\windows\java\notes, EDIT " " will create a file in that directory called "notes".
del承认""*.*将删除所有之前及时确认档案目录.同编辑 数位之间的引号似乎并不重要,但如果没有空间,是一项错误的讯息,说了所需参数展出失踪.
不像编辑,可以包括路径,如果它没有引号位之间需要.即删除所有的档案,在当前目录:
DEL ./"" works, but DEL "" gives an error message.
副本也看好""*.*,象del,接受了道路. 不像del,一定要有一个太空之间引号,即使包括了道路
|
|