为什么我在 /XF 行收到无效参数错误?
ERROR : Invalid Job File, Line #4 :"/XF *.avi *.mov *.mp4 *.mv4 *.ai"
我的线路上没有任何杂散字符。一定是有什么蠢事……
H:是 Windows Server 2012 文件共享,P:是外部 USB 驱动器,操作系统是 Windows 7
没有 /XF 行的命令也可以。
/SD:H:
/DD:P:\H
/XF *.avi *.mov *.mp4 *.mv4 *.ai
/E :: copy subdirectories, including Empty ones.
/PURGE :: delete dest files/dirs that no longer exist in source.
/XO ::Excludes Older files. - keeps files newer on the destination
/V ::Produces verbose output (including skipped files).
::/L ::Lists files without copying, deleting, or applying a time stamp to any files.
/LOG+:roboSlowH.log ::Redirects output to the specified file, overwriting the file if it already exists (LOG+ appends)
::/FP :: include Full Pathname of files in the output.
/NDL ::Turns off logging of directory names. Full file pathnames (as opposed to simple file names) will be shown if /NDL is used.
/NP ::Turns off copy progress indicator (% copied).
/R:0 ::Specifies the number of retries on failed copies. (The default is 1 million.)
/W:0 ::Specifies the wait time between retries. (The default is 30 seconds.)
/IPG:90 : Inter-Packet Gap (ms), to free bandwidth on slow lines
答案1
这是因为您错误地编辑了该选项的 Job 文件。
制作作业文件的正确/官方方法是布置 Robocopy 命令,然后将其添加/save:JobFileName
到末尾。这会将其保存到正确的 RCJ 作业文件中。
完成此操作后,在文本编辑器中查看生成的文件,可以清楚地看到每个文件名都应该位于自己的行上:
::
:: Exclude These Files :
::
/XF :: eXclude Files matching these names
*.exe
*.img