RoboCopy バッチ ファイルについてサポートが必要です。サーバー1からサーバー2にファイルをコピーするためにRoboCopyを実行するバッチファイルがあります。/XO スイッチを含めて、新しいファイルのみをコピーしました。
ファイルがコピーされた後、コピーされたファイルに対してコマンドを実行します。コピー プロセスは正常ですが、コマンドは失敗しました。ここで何が欠けているのかわかりません。:(
ここで専門家からの助けをいただければ幸いです。以下は私のバッチファイルです:
ロボコピージョブ C:\ROBOCOPY\JOB2.RCJ
2013 年 5 月 6 日月曜日 14:11:19 に User_Name によって作成されました。
ソース ディレクトリ:
/SD:\\Server1\Projects\MS480\RSL_PR1_Data\LOFILE\ :: Source Directory.
宛先ディレクトリ:
/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