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

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

批处理:复制特定文件
目录:
  testsrc
  testsrcaaa.txt
  testsrcbbb.txt
  testdest

我在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"

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

相关文章:

你感兴趣的文章:

标签云: