带有robocopy的批处理文件列表

时间:2014-04-25 18:08:54

标签: batch-file robocopy

FOR /F "delims=|" %%i  IN (loglist.txt) DO robocopy "%Src%%%i" "C:\Temp\Test" *.ininlog

给出此错误错误2访问源目录C:\ Temp \ Logs \ 2014-04-24 \ accserver \

预期的操作应该是复制C:\ Temp \ Logs \ 2014-04-24 \ accserver.ininlog

我做错了什么?

1 个答案:

答案 0 :(得分:2)

让它工作正在做错误的操作

 FOR /F "delims=|" %%i  IN (loglist.txt) DO robocopy %Src% C:\Temp\Test "%%i".ininlog