【求助】RoboCopy指令參數的中文意思 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- Windows 討 論 版


PCZONE 討論區



通知

-- Windows 討 論 版 包括 Windows 95/98/ME、Windows NT/2000/XP/Server 2003 等的疑難雜症解答與經驗分享。

會員
【求助】RoboCopy指令參數的中文意思
目前準備開始使用RoboCopy指令,可是發現它的參數說明是全英文的
某些參數說明我是翻譯出來了,但不知道是否有錯誤?
還有些翻譯不出來的(便不了解它的功能),可否請您幫個忙?


來源參數
/S : 複製每個目錄及其包含的子目錄,不複製空目錄 copy Subfolders
/E : 複製每個目錄及其包含的子目錄,也複製空目錄 copy Subfolders, including Empty Subfolders.
/SEC : 複製安全性 copy SECurity info (both source and dest must be NTFS).##

/A : 只複製設定成保存屬性的檔案,不要改變屬性的設定 copy only files with the Archive attribute set.
/M : 只複製設定成保存屬性的檔案,並清除保存屬性 like /A, but remove Archive attribute from source files.
/LEV:n : only copy the top n LEVels of the source tree.##

/MAXAGE:n : 排除比指定日期要舊的檔案 MAXimum file AGE - exclude files older than n days/date.##
/MINAGE:n : 排除比指定日期要新的檔案 MINimum file AGE - exclude files newer than n days/date.##
(If n < 1900 then n = n days, else n = YYYYMMDD date).

複製參數
/L : 顯示要複製的檔案 List only - don't copy, timestamp or delete any files.
/MOV : 移動檔案 MOVe files (delete from source after copying).##
/MOVE : 移動檔案與資料夾 Move files and dirs (delete from source after copying).

/Z : 在可重新開始的模式中複製網路檔案 copy files in restartable mode (survive network glitch).##

/R:n : number of Retries on failed copies - default is 1 million.
/W:n : Wait time between retries - default is 30 seconds.
/REG : Save /R:n and /W:n in the Registry as default settings.

/TBD : wait for sharenames To Be Defined (retry error 67).##

目的地參數

/A+:[R][A][S][H] : set file Attributes on destination files - add.
/A-:[R][A][S][H] : set file Attributes on destination files - remove.
/FAT : 將目的檔案設定成FAT8.3名稱(不太了解意思) create destination files using 8.3 FAT file names only.##
/SECFIX : FIX SECurity info on existing files and dirs.##
/TimFix : FIX Timestamp on all existing destination files,
including skipped files. ##
(prior to version 1.95 this was /T it's not backwards compatible
so scripts that use /T may fail)

/CREATE : CREATE directory tree structure + zero-length files only.

/PURGE : 刪除目的檔案,當來源檔案已不存在時 delete dest files/folders that no longer exist in source.
/MIR : MIRror a directory tree - equivalent to /PURGE plus all subfolders (/E) ##

記錄參數
/L : 顯示要複製的檔案(前面也有個/L,但不知差異在哪) List only - don't copy, timestamp or delete any files.
/NP : 不要顯示拷貝的百分比 No Progress - don't display % copied.
/LOG:file : 將記錄複寫到記錄檔 output status to LOG file (overwrite existing log). ##
/LOG+:file : 將記錄附加到記錄檔 output status to LOG file (append to existing log). ##

進階參數
/XO : 排除目的檔案的日期跟來源檔案一樣或更新 eXclude Older - if destination file exists and is the same date
or newer than the source - don't bother to overwrite it.
/XC | /XN : 排除變更過的檔案 eXclude Changed | 排除新增的檔案 Newer files
/XX | /XL : eXclude eXtra | Lonely files and dirs.
An "extra" file is present in destination but not source,
excluding extras will delete from destination.
A "lonely" file is present in source but not destination
excluding lonely will prevent any new files being added to the destination.
/IS : 複寫檔案,既使他們是一樣的(不太了解意思) Overwrite files even if they are already the same.

/XF file [file]... : 排除指定的檔案,可包含路徑與萬用字元 eXclude Files matching given names/paths/wildcards.##
/XD dirs [dirs]... : 排除指定的資料夾 eXclude Directories matching given names/paths. ##
XF and XD can be used in combination e.g.
ROBOCOPY c:\source d:\dest /XF *.doc *.xls /XD c:\unwanted /S

/MAX:n : 排除比指定bytes要大的檔案 MAXimum file size - exclude files bigger than n bytes. ##
/MIN:n : 排除比指定bytes要小的檔案 MINimum file size - exclude files smaller than n bytes.##
/XA:[R][A][S][H] : eXclude files with any of the given Attributes
/IA:[R][A][S][H] : Include files with any of the given Attributes ##

/X : report all eXtra files, not just those selected & copied.
/V : produce Verbose output log, showing skipped files.
/ETA : 顯示預估完成的時間 show Estimated Time of Arrival of copied files.

## indicates a new feature in Robocopy version 1.95

回覆
Take it easy~

我來試幾個, 看看就好 :D

來源參數
/S : 複製每個目錄及其包含的子目錄,不複製空目錄 copy Subfolders
/E : 複製每個目錄及其包含的子目錄,也複製空目錄 copy Subfolders, including Empty Subfolders.
/SEC : 複製安全性資訊,來源和目標必需都是NTFS檔案系統 copy SECurity info (both source and dest must be NTFS).
/COPY:copyflag[s] : 要複製的項目,預設複製檔案+檔案屬性+檔案時間 (default is /COPY:DAT). 項目代碼: D=資料(檔案), A=屬性, T=時間資訊, S=NTFS安全性設定, O=檔案擁有者資訊, U=稽核資訊?).
 (copyflags : D=Data, A=Attributes, T=Timestamps).
 (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
/COPYALL : 複製全部檔案資訊,與 /COPY:DATSOU 相同 Copy ALL file info (equivalent to /COPY:DATSOU).
/NOCOPY : 不複製全部檔案資訊,可與 /PURGE 搭配使用 Copy NO file info (useful with /PURGE).
/A : 只複製設定成保存屬性的檔案,不要改變屬性的設定 copy only files with the Archive attribute set.
/M : 只複製設定成保存屬性的檔案,並清除保存屬性 like /A, but remove Archive attribute from source files.
/LEV:n : 只複製到第 n 層子目錄 only copy the top n LEVels of the source tree.
/MAXAGE:n : 排除比指定日期(或日數)要舊的檔案 MAXimum file AGE - exclude files older than n days/date.##
/MINAGE:n : 排除比指定日期(或日數)要新的檔案 MINimum file AGE - exclude files newer than n days/date.##
 (若 n < 1900 則 n = 天數,否則 n = YYYYMMDD 格式的日期).
 (If n < 1900 then n = n days, else n = YYYYMMDD date).

複製參數
/L : 只顯示要複製的檔案,不作複製、刪除或修改日期的動作 List only - don't copy, timestamp or delete any files.
/MOV : 移動檔案 MOVe files (delete from source after copying).##
/MOVE : 移動檔案與資料夾 Move files and dirs (delete from source after copying).
/Z : 在可重新開始的模式中複製網路檔案 copy files in restartable mode (survive network glitch).##
/R:n : 當複製失敗時要重試的次數,預設100萬次 number of Retries on failed copies - default is 1 million.
/W:n : 重試間隔的時間,預設 30 秒 Wait time between retries - default is 30 seconds.
/REG : 將 /R:n 和 /W:n 的設定值存入登錄檔做為預設值 Save /R:n and /W:n in the Registry as default settings.
............
.............
翻譯真是很累人... ^^||
回覆
會員

感謝您的回應
雖然沒有全翻,但有翻出來的也非常明白易懂
因為這RoboCopy真的是好工具
但基於連說明都是英文的,我想很多人應該跟我一樣不知該如何使用
我連用了翻譯軟體,也還是一大半翻譯不出個所以然來
希望這些翻譯的說明在完成後,可以幫助到大家

我的RoboCopy參數中沒有出現
/COPY、/COPYALL、/NOCOPY
這3個…難道有版本差異?

剛又查了一下原來我手頭的RoboCopy
程式是1.71版的,說明檔txt確是1.95版了
而微軟有開放免費下載 Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/d...displaylang=en

它是註明相容性不包含Windows2000
可是我將它放到Windows2000中,居然可以正常使用
版本為Version XP010,可能還沒用到不相容的參數吧

回覆
主題工具







 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。