Robocopy Syntax, Command Line Switches and Examples robocopy語法,命令行開關和範例

Robocopy (Robust File Copy) is a command-line file copying tool in Windows Vista. robocopy (強健的文件副本)是一個命令行文件複製工具,在Windows Vista中。 Although Robocopy is available for free with the download Windows Resource Kit since Windows NT 4.0, it has never been an official feature of the operating system until the arrival of Vista.雖然robocopy是可以免費使用與下載Windows Resource Kit中自Windows NT 4.0 ,一直沒有得到官方的功能的作業系統,直到抵達Vista的。 Unlike other built-in file copying commands such as Copy and XCopy, Robocopy is designed for reliable copy or mirroring of entire folders of any size, and in the copying process, ensure that all NTFS ACLS, attributes, owner information, alternate data streams, auditing information, timestamps and properties are copied except security information unless explicitly requested with /COPYALL switch.不像其他內建在文件複製命令,如複製和xcopy , robocopy是專為可靠的複製或鏡像整個文件夾的任何大小,並在複製過程中,確保所有的NTFS的ACL ,屬性,所有者信息,交替數據流,審計信息,時間戳和性能的複製,除了安全信息,除非明確要求與/ copyall開關。 And best of all, Robocopy works over network connections that are subject to disruption or outages with resume copying feature, and has progress indicator on the command line that is useful when copying large files.和最佳所有, robocopy工程網絡連接,是會受到干擾或中斷與恢復複製功能,並已取得進展的指標,命令行是有益的,當複製大文件。

Robocopy Syntax robocopy語法

ROBOCOPY source destination [file [file]…] [options] robocopy來源目的地[檔案[檔案] … … ] [選項]

where source is Source Directory (drive:\path or \\server\share\path), destination is Destination Directory (drive:\path or \\server\share\path) and file is File(s) to copy where names or wildcards can be specified and default is “*.*” (all files).其中source是源目錄(驅動器: \路徑或\ \服務器\共享\路徑) ,目的地是目的地目錄(驅動器: \路徑或\ \服務器\共享\路徑)和文件檔案( )複製的地方的姓名或通配符可以指定默認是"*.*" (所有文件) 。

Robocopy Options and Switches robocopy選項和開關

Copy options : 複製選項:

/S :: copy Subdirectories, but not empty ones. /秒: :複製子目錄,而不是空的。
/E :: copy subdirectories, including Empty ones. / E的: :複製子目錄,包括空。
/LEV:n :: only copy the top n LEVels of the source directory tree. /列弗:無: :唯一的副本頂端氮素營養水平的源目錄樹中。

/Z :: copy files in restartable mode. / z :完成:複製檔案,在重新啟動模式。
/B :: copy files in Backup mode. /乙: :複製文件的備份模式。
/ZB :: use restartable mode; if access denied use Backup mode. / zb : :使用可重新啟動模式;如果拒絕存取使用備份模式。
/EFSRAW :: copy all encrypted files in EFS RAW mode. / efsraw : :複製所有加密的檔案,在英,法,西的原始模式。

/COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT). /複製: copyflag [ ] : :有什麼要複製的文件(默認是/複製:數據) 。
(copyflags : D=Data, A=Attributes, T=Timestamps). ( copyflags : =數據, =屬性,噸=時間戳) 。
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info). ( = =安全的NTFS的ACL ,澳=所有者信息,美國=審計信息) 。

/DCOPY:T :: COPY Directory Timestamps. / dcopy :電話: :複製目錄的時間戳。

/SEC :: copy files with SECurity (equivalent to /COPY:DATS). /秒: :複製檔案與安全(相當於/複製:反黑組) 。
/COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU). / copyall : :複製所有文件信息(相當於/複製: datsou ) 。
/NOCOPY :: COPY NO file info (useful with /PURGE). / nocopy : :沒有複製文件信息(有用/清除) 。

/SECFIX :: FIX file SECurity on all files, even skipped files. / secfix : :修復檔案的安全性對所有的檔案,甚至略過的文件。
/TIMFIX :: FIX file TIMes on all files, even skipped files. / timfix : :修復文件的時代,所有的檔案,甚至略過的文件。

/PURGE :: delete dest files/dirs that no longer exist in source. /吹掃: :刪除dest檔案/ dirs不再存在,在來源。
/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE). /和平號空間站: :一面鏡子,一個目錄樹(相當於/ E的加/清除) 。

/MOV :: MOVe files (delete from source after copying). / mov : :移動文件(刪除從源代碼複製之後) 。
/MOVE :: MOVE files AND dirs (delete from source after copying). /移動: :移動文件和dirs (刪除從源代碼複製之後) 。

/A+:[RASHCNET] :: add the given Attributes to copied files. /一+ : [ rashcnet ] : :添加鑑於屬性複製的文件。
/A-:[RASHCNET] :: remove the given Attributes from copied files. /一- : [ rashcnet ] : :刪除鑑於屬性,從複製的文件。

/CREATE :: CREATE directory tree and zero-length files only. /創建: :創建目錄樹和長度為零的文件只。
/FAT :: create destination files using 8.3 FAT file names only. /發: :創造目的地檔案利用8.3 FAT文件的名稱而已。
/256 :: turn off very long path (> 256 characters) support. / 256 : :關閉很長的路徑( “ > 256個字符)的支持。

/MON:n :: MONitor source; run again when more than n changes seen. /週一:無: :監察源;再次運行時,以上的n變化。
/MOT:m :: MOnitor source; run again in m minutes Time, if changed. /摩托羅拉:米: :監察源;再次運行在M分鐘的時間,如果改變。

/RH:hhmm-hhmm :: Run Hours - times when new copies may be started. /銠: hhmm - hhmm : :運行小時-的時候,新副本,可能會開始。
/PF :: check run hours on a Per File (not per pass) basis. /酚醛: :檢查運行時,每文件(而不是每通過)的基礎上。

/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines. / ipg :無: :跨包的差距( MS )的,免費的帶寬就慢行。

File Selection Options : 文件選擇選項:

/A :: copy only files with the Archive attribute set. /一: :只複製檔案存檔屬性設置。
/M :: copy only files with the Archive attribute and reset it. /米: :只複製檔案存檔屬性和復位。
/IA:[RASHCNETO] :: Include only files with any of the given Attributes set. /保險業監督: [ rashcneto ] : :只包括檔案與任何特定的屬性設置。
/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set. / XA部: [ rashcneto ] : :排除特定文件的任何特定屬性的設置。

/XF file [file]… :: eXclude Files matching given names/paths/wildcards. / 24檔案[檔案] … … : :排除文件匹配的名字/路徑/通配符。
/XD dirs [dirs]… :: eXclude Directories matching given names/paths. / XD法dirs [ dirs ] … … : :排除目錄匹配的名字/路徑。

/XC :: eXclude Changed files. /越野: :排除更改的文件。
/XN :: eXclude Newer files. / xn : :排除較新的文件。
/XO :: eXclude Older files. /二甲酚橙: :排除在較舊的檔案。
/XX :: eXclude eXtra files and directories. /第XX : :排除額外的文件和目錄。
/XL :: eXclude Lonely files and directories. / xl : :排除寂寞的文件和目錄。
/IS :: Include Same files. /是: :包括相同的文件。
/IT :: Include Tweaked files. / : :包括扭曲的文件。

/MAX:n :: MAXimum file size - exclude files bigger than n bytes. /最高:無: :檔案大小上限-排除文件大於N字節。
/MIN:n :: MINimum file size - exclude files smaller than n bytes. /分鐘:無: :最低檔案大小-排除檔案小於N字節。

/MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date. / maxage :無: :文件最大年齡-排除文件年紀比N天/日期。
/MINAGE:n :: MINimum file AGE - exclude files newer than n days/date. / minage :無: :最低檔案年齡-排除文件更新比N天/日期。
/MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n. / maxlad :無: :最高最後訪問的日期-排除文件未使用的,自1 2月3 1日
/MINLAD:n :: MINimum Last Access Date - exclude files used since n. / minlad :無: :最低最後訪問的日期-排除使用的文件,自1 2月3 1日
(If n < 1900 then n = n days, else n = YYYYMMDD date). (如果n < 1900年則N = N天,否則,每組採用YYYYMMDD的日期) 。

/XJ :: eXclude Junction points. /的XJ : :排除交界點。 (normally included by default). (通常包括默認情況下) 。

/FFT :: assume FAT File Times (2-second granularity). / FFT的: :假設FAT文件時代( 2 -第二粒度) 。
/DST :: compensate for one-hour DST time differences. / DST的: :賠償一小時DST時間的差異。

/XJD :: eXclude Junction points for Directories. / xjd : :排除交界點的目錄。
/XJF :: eXclude Junction points for Files. / xjf : :排除交界點的文件。

Retry Options : 試選項:

/R:n :: number of Retries on failed copies: default 1 million.商業/住宅:無: :重試次數就沒有副本:默認1000000 。
/W:n :: Wait time between retries: default is 30 seconds. /瓦特:無: :等待時間之間的試:默認是30秒。

/REG :: Save /R:n and /W:n in the Registry as default settings.使用/ reg : :儲存/比R : N和/瓦特:不適用在註冊表中作為默認設置。

/TBD :: wait for sharenames To Be Defined (retry error 67). /待定: :等待sharenames加以界定(重試錯誤67 ) 。

Logging Options : 測井選項:

/L :: List only - don’t copy, timestamp or delete any files. /升: :只列出-不要複製,時間戳記或刪除任何文件。
/X :: report all eXtra files, not just those selected. / x :在報告:所有多餘的檔案,而不只是那些被選中。
/V :: produce Verbose output, showing skipped files. /五: :產生詳細輸出,顯示跳過文件。
/TS :: include source file Time Stamps in the output. / 6月24日ts : :包括源文件的時間,在郵票的輸出。
/FP :: include Full Pathname of files in the output. /計劃生育: :包括完整路徑的文件在輸出。
/BYTES :: Print sizes as bytes. /字節: :打印尺寸為字節。

/NS :: No Size - don’t log file sizes. /生理鹽水: :沒有大小-不要日誌文件的大小。
/NC :: No Class - don’t log file classes. /數控: :沒有一流的-不要日誌文件班。
/NFL :: No File List - don’t log file names. /還在: :沒有檔案清單-不要日誌文件名稱。
/NDL :: No Directory List - don’t log directory names. / ndl : :沒有目錄清單-不要日誌目錄名稱。

/NP :: No Progress - don’t display % copied. / NP的: :沒有任何進展-不顯示%複製。
/ETA :: show Estimated Time of Arrival of copied files. /埃塔: :顯示,預計抵達時間的複製文件。

/LOG:file :: output status to LOG file (overwrite existing log). /日誌:檔案: :輸出的地位,日誌文件(改寫現有日誌) 。
/LOG+:file :: output status to LOG file (append to existing log). /日誌+ :檔案: :輸出的地位,日誌文件(附加到現有日誌) 。

/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing log). / unilog :檔案: :輸出的地位,日誌文件為Unicode (改寫現有日誌) 。
/UNILOG+:file :: output status to LOG file as UNICODE (append to existing log). / unilog + :檔案: :輸出的地位,日誌文件為Unicode (附加到現有日誌) 。

/TEE :: output to console window, as well as the log file. /發球: :輸出到控制台窗口,以及為日誌文件。

/NJH :: No Job Header. / njh : :沒有就業的標題。
/NJS :: No Job Summary. / njs : :沒有工作的概要。

/UNICODE :: output status as UNICODE. /的Unicode : :輸出的地位,為Unicode 。

Job Options : 就業選擇:

/JOB:jobname :: take parameters from the named JOB file. /工作: jobname : :採取參數命名的就業檔案。
/SAVE:jobname :: SAVE parameters to the named job file /保存: jobname : :保存參數的命名工作文件
/QUIT :: QUIT after processing command line (to view parameters). /退出: :退出處理後的命令行(查看參數) 。

/NOSD :: NO Source Directory is specified. / nosd : :沒有源目錄中指定。
/NODD :: NO Destination Directory is specified. / nodd : :沒有目的地目錄中指定。
/IF :: Include the following Files. /如果: :包括下列文件。

Robocopy Examples robocopy的例子

To use Robocopy is simple, just like how you would use Copy and Xcopy commands.使用robocopy很簡單,就像你如何使用複製和xcopy命令。 For example, to copy entire folder of C:\Users to C:\UserBackup, simply type:舉例來說,要複製整個文件夾的C : \用戶到C : \ userbackup ,只需鍵入:

Robocopy C:\Users C:\UserBackup robocopy為C : \用戶為C : \ userbackup

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 .



One Response to “Robocopy Syntax, Command Line Switches and Examples” 1回應“ robocopy語法,命令行開關和榜樣”

  1. Microsoft Robocopy GUI Free Download » My Digital Life微軟robocopy貴免費下載»我的數位生活
    May 8th, 2007 02:59 2007年5月8日2時59分
    1

    [...] Robocopy is an advanced copy utility with has the feature to automatically resume file transfer on error or network disruption, or recover from terminated file copying, plus selective copying based on new or updated criteria. [ … … ] robocopy是一種先進的複製與公用事業有功能自動恢復文件傳輸上的錯誤或網絡中斷,或收回從終止文件複製,再加上選擇性複製的基礎上新的或更新的準則。 Beside, Robocopy also can preserve all of the file properties and information, including date and time stamps, security access control lists (ACLs) and more while replicating the file.旁邊, robocopy也可以保存所有的文件屬性和信息,包括日期和時間郵票,安全存取控制清單( ACL )和更多的同時,複製檔案。 Robocopy is definitely a more useful utility, especially for advanced users. robocopy無疑是一個更為有用,實用,特別是高級用戶使用。 However, Robocopy came built-in in Windows Vista with command line interface only.不過, robocopy來到內建在Windows Vista中,與命令行界面只。 To ease the task of using Robocopy, a GUI (graphical user interface) has been made available by Microsoft.以紓緩的任務使用robocopy , GUI (圖形用戶界面)已提供微軟。 Robocopy GUI lets you specify your source and target paths, as well as any custom options or filters you’d like to apply, whether or not you’d like to create a drive mapping, where you’d like to store the resulting logs, and so on. robocopy貴,您可以指定您的來源和目標的路徑,以及任何的自定義選項或過濾器您想要套用的,無論是或不是您想要創建一個驅動器映射,如果您想要存儲所產生的日誌,等等。 These are all features you can certainly execute with traditional Robocopy command line functionality, but for many, having the options consolidated in a graphical interface may really simplify the process.這些都是功能,你當然可以執行與傳統robocopy命令行功能,但對許多人來說,考慮的選項綜合在一個圖形界面可能真的簡化的過程。 [...] [ … … ]

Leave a Reply離開的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <刪除日期時間= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱無評論


Custom Search

New Articles新的條款,

Incoming Search Terms for the Article傳入的搜索條件文章

robocopy robocopy - - robocopy switches robocopy開關 - - Robocopy Examples robocopy的例子 - - robocopy syntax robocopy語法 - - robocopy commands robocopy命令 - - robocopy example 例如robocopy - - Robocopy options robocopy選項 - - Robocopy command robocopy命令 - - robocopy robocopy - - robocopy parameters robocopy參數 - - robo copy 機器人複製 - - robocopy command line robocopy命令行 - - robocopy /XD robocopy / XD法 - - HOW to use robocopy 如何使用robocopy - - robocopy samples robocopy樣本 - - robocopy sample robocopy樣本 - - vista robocopy Vista的robocopy - - all 全部 - - robocopy xd robocopy XD法 - - robocopy download robocopy下載 - - robocopy vista robocopy Vista的 - - example robocopy 例如robocopy - - robocopy parameter robocopy參數 - - robocopy command line switches robocopy命令行開關 - - robocopy job file robocopy就業檔案 - - robocopy How To robocopy如何 - - robocopy EFS robocopy英,法,西 - - robocopy resume robocopy恢復 - - robocopy command switches robocopy命令開關 - - robocopy exclude directory robocopy排除目錄 - - robocopy exclude robocopy排除 - - robocopy error codes robocopy錯誤代碼 - - robocopy optionen robocopy optionen - - "robocopy" “ robocopy ” - - robocopy command line options robocopy命令行選項 - - "robocopy examples" “ robocopy榜樣” - - robocopy option robocopy選項 - - robocopy command examples robocopy命令的例子 - - robocopy command example robocopy命令的例子 - - examples of robocopy 例子robocopy - - robocopy exclude directories robocopy排除目錄 - - robocopy COPY OPTIONS robocopy複製選項 - - How to Robocopy 如何robocopy - - robocopy syntax examples robocopy語法示例 - - robo copy commands 機器人複製命令 - - robocopy command line examples robocopy命令行的例子 - - robo copy switches 機器人複製開關 - - robocopy encrypted files robocopy加密的文件 - - Robocopy commandline robocopy命令 - - Robocopy Job Files robocopy就業檔案 - - sample robocopy 樣本robocopy - - robocopy command lines robocopy命令行 - - robocopy syntax robocopy語法 - - robocopy switches robocopy開關 - - examples robocopy 例子robocopy - - robocopy encrypted robocopy加密 - - robocopy /xd example robocopy / XD法為例, - - robocopy switches robocopy開關 - - robocopy vista examples robocopy Vista的例子 - - robocopy command line parameters robocopy命令行參數 - - Robocopy+Syntax robocopy +語法 - - option robocopy 選項robocopy - - robocopy download vista robocopy下載Vista的 - - robocopy example commands robocopy例如命令 - - how to use robocopy command line 如何使用robocopy命令行 - - robocopy exclude files robocopy排除檔案 - - robocopy restartable mode robocopy重新啟動模式 - - robocopy vista download robocopy Vista的下載 - - robocopy command line download robocopy命令行下載 - - robocopy junction robocopy交界處 - - robocopy show progress robocopy顯示進展 - - RoboCopy command options robocopy命令選項 - - robocopy error 5 robocopy錯誤5 - - Robocopy command list robocopy命令清單 - - syntax robocopy 語法robocopy - -