Command line Robocopy不复制文件
我使用以下命令行运行robocopy:Command line Robocopy不复制文件,command-line,robocopy,Command Line,Robocopy,我使用以下命令行运行robocopy: \\server1\devl\cfapps\cfeis\ctr" "\\server2\test\cfapps\cfeis\ctr" "edit_items.cfm " /purge /log:\\server1\cfapps\cfeis\mysync2\logs\rc_10092014_txt /NDL /r:2 /w:2 有时这样做行得通,但有时不行。日志文件将显示: -----------------------------------------
\\server1\devl\cfapps\cfeis\ctr" "\\server2\test\cfapps\cfeis\ctr" "edit_items.cfm " /purge /log:\\server1\cfapps\cfeis\mysync2\logs\rc_10092014_txt /NDL /r:2 /w:2
有时这样做行得通,但有时不行。日志文件将显示:
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Thu Oct 09 08:59:34 2014
Source : \\server1\devl\cfapps\cfeis\ctr\
Dest : \\server2\test\cfapps\cfeis\ctr\
Files : edit_items.cfm
Options : /NDL /COPY:DAT /PURGE /R:2 /W:2
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Thu Oct 09 08:59:34 2014
这个文件夹有一个以上的目录,并且有一堆文件,所以显然它无法正确读取某些内容。我知道路径是正确的,用户拥有正确的权限,因为它每隔一段时间就会工作一次。什么会阻止它只在某些时候起作用
谢谢。我刚刚意识到文件名后面有一个空格。去掉了它,它工作得很好