|
|
发表于 2009-4-5 15:10:08
|
显示全部楼层
我的测试结果:
C:\>test.bat
C:\>rem @echo off
C:\>set src=C:\Documents and Settings\Administrator\桌面\test
C:\>set dst=D:\test
C:\>for %a in (jpg gif) do xcopy /s/e/c "C:\Documents and Settings\Administrator\
桌面\test\*.%a" "D:\test\"
C:\>xcopy /s/e/c "C:\Documents and Settings\Administrator\桌面\test\*.jpg" "D:\te
st\"
C:\Documents and Settings\Administrator\桌面\test\a\1.jpg
复制了 1 个文件
C:\>xcopy /s/e/c "C:\Documents and Settings\Administrator\桌面\test\*.gif" "D:\te
st\"
C:\Documents and Settings\Administrator\桌面\test\1.gif
复制了 1 个文件
C:\>pause
请按任意键继续. . .
C:\>tree /f D:\test
文件夹 PATH 列表
卷序列号为 A442-A07A
D:\TEST
│ 1.gif
│
├─a
│ 1.jpg
│
└─b
|
[ 本帖最后由 zqz0012005 于 2009-4-5 15:28 编辑 ] |
|