0
我需要RoboCopy批處理文件的幫助。我有一個批處理文件來運行RoboCopy將文件從server1複製到server2。我已經包含/ XO開關只複製新文件。RoboCopy&Command
文件複製完成後,針對複製的文件運行命令。複製過程可以,但命令失敗。我不知道我在這裏錯過了什麼。 :(
我真的很感激,從這裏的專家的幫助下面是我的批處理文件:
的Robocopy作業C:\ ROBOCOPY \ JOB2.RCJ
由USER_NAME於星期一05月06日2013年14時十一分19秒
源目錄:
/SD:\\Server1\Projects\MS480\RSL_PR1_Data\LOFILE\ :: Source Directory.
Destinatio ñ目錄:
/DD:\\Server2\RoboCopy\Exp\ :: Destination Directory.
包含這些文件:
/IF :: Include Files matching these names
SystemOptions*.*
排除這些目錄:
/XD :: eXclude Directories matching these names
:: eXclude no names (currently - Command Line may override)
排除這些文件:
/XF :: eXclude Files matching these names
:: eXclude no names (currently - Command Line may override)
/XO :: eXclude Older files.
複製選項:
/COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU).
/FFT :: assume FAT File Times (2-second granularity).
/ZB :: use restartable mode; if access denied use Backup mode.
重試選項:
/R:5 :: number of Retries on failed copies: default 1 million.
/W:5 :: Wait time between retries: default is 30 seconds.
記錄選項:
/V :: produce Verbose output, showing skipped files.
/TS :: include source file Time Stamps in the output.
/FP :: include Full Pathname of files in the output.
/NP :: No Progress - don't display percentage copied.
/LOG:C:\Desktop\RoboCopy\Systemsoptions-LO-FILE.txt :: output status to LOG file (overwrite existing log).
/TEE :: output to console window, as well as the log file.
@echo off
RoboCopy /JOB:job1
SET file=SystemOptions*.*
FOR /f %file% in (C:\Desktop\RoboCopy\Systemsoptions-LO-FILE.txt) do CrCTool.exe
/f:%file% /a