源:
http://blogs.msdn.com/adioltean/archive/2005/02/25/380759.aspx
下面的技巧没有明显的写出来,但是在实际中很有用哦
1) Copy一个目录下的东东到当前文件夹,只要指来源文件夹就行了:
y:\privates>copy C:\WINDOWS\system32\clients\twclient\x86
C:\WINDOWS\system32\clients\twclient\x86\twcli32.msi
1 file(s) copied.
2) 不用编辑软件建立文件:
y:\privates>copy con sample.txt
This is a text file.
Another line...
^Z
1 file(s) copied.
y:\privates>type sample.txt
This is a text file.
Another line...
3) 建立 0 长度文件
C:\>copy nul empty.txt
1 file(s) copied.
C:\>dir empty.txt
Volume in drive C has no label.
Volume Serial Number is FCCD-E1D0
Directory of C:\
02/26/2005 10:38 PM 0 empty.txt
1 File(s) 0 bytes
0 Dir(s) 24,429,268,992 bytes free
4) 在一个txt文件后接着写(append),注意 /A 参数
y:\privates>copy /A abc.txt + con
abc.txt
con
BBB
^Z
1 file(s) copied.
y:\privates>copy /A abc.txt + con
abc.txt
con
CCC
^Z
1 file(s) copied.
y:\privates>type abc.txt
AAA
BBB
CCC