首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > windows >

批处理:复制特定文件解决办法

2012-01-30 
批处理:复制特定文件目录:test\src\test\src\aaa.txttest\src\bbb.txttest\dest\我在test\下新建一个 copy

批处理:复制特定文件
目录:
  test\src\
  test\src\aaa.txt
  test\src\bbb.txt
  test\dest\

我在test\下新建一个 copy.bat:
  forfiles /P "/src" /C "if /I @file == aaa.txt xcopy /Y @file ..\dest"
提示:系统找不到指定的文件

其实是要拷贝不同的文件到不同的目录。

请朋友指点。

[解决办法]

VBScript code
forfiles /p "src" /m "aaa.txt" /c "cmd /c copy /y @file ..\dest" 

热点排行