Super copy command in Vista system: RoboCopy

  

Super copy command in Vista system: How to use RoboCopy?

Below Vista, there is a very powerful command line copy program RoboCopy, which can be used to replace the previous xcopy command. Microsoft claims to be a reliable copy program, which is more than the DOS era and the old version of Windows. There are a lot of switch settings. Of course, ordinary copy actions can be executed in the resource manager.

Note:
example: the user wants disk D Tencent QQ folders copied to the disk directory E:

procedure similar xcopy command:
< BR>D:\\>robocopy D:\\tencent e:\\qq
------------------------------- ------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------- ----------------------------------------- Started : Thu Jun 28 12:36: 56 2007
Source : D:\\tencent\\
Dest : e:\\qq\\
Files : *.*
Options : *.* /COPY:DAT /R:1000000 /W:30
----------------------------------------------- -------------------------------
64 D:\\tencent\\
100% New File 217088 ADManage. Dll
100% New File 96256 atl80.dll
----------------------------------- -------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 2 2 0 0 0 0
Bytes : 12.93 m 12.93 m 0 0 0 0
Times : 0:00:02 0:00:02 0:00:00 0 : 00: 00



Speed: 5363003 Bytes /sec
Speed:. 306.873 MegaBytes /min
Ended:. Thu Jun 28 12:36:59 2007

D: \\ & gt; _



Appendix:
using the format: ROBOCOPY source destination [file [file] ...] [options]

Source:: Source directory (drive:\\path or \\server\\share\\path).
Directory:: Target directory (drive: \\path or \\server\\share\\path).
File:: The file to be copied (name/wildcard: defaults to "*.*").

a copy options:
of parameters:
/S :: copy subdirectory, but does not copy empty subdirectories.
/E :: Copy subdirectories, including empty subdirectories.
/LEV:n :: Copy only the first n layers of the source tree.
/Z :: Copy files in restartable mode.
/B :: Copy files in backup mode.
/ZB :: Use restartable mode; if access is denied, use backup mode.
/EFSRAW :: Copy all encrypted files in EFS RAW mode.
/COPY: Copy Mark:: The content of the file to be copied (default is /COPY:DAT).
(copy mark: D = data, A = attribute, T = timestamp).
(S=Security=NTFS ACL, O=Owner Information, U=Review Information).
/DCOPY:T :: Copy directory timestamp.
/SEC :: Copy a secure file (equivalent to /COPY:DATS).
/COPYALL :: Copy all file information (equivalent to /COPY:DATSOU).
/NOCOPY :: Do not copy any file information (valid with /PURGE).
/SECFIX :: Fix file security for all files, even skipped files.
/TIMFIX :: Fix file time for all files, even skipped files.
/PURGE :: Delete target files/directories that no longer exist in the source.
/MIR :: Mirror directory tree (equivalent to /E and /PURGE).
/MOV :: Move files (removed from source after copying).
/MOVE :: Move files and directories (removed from source after copying).
/A+:[RASHCNET] :: Add the given attribute to the copied file.
/A-:[RASHCNET] :: Remove the given attribute from the copied file.
/CREATE :: Create only directory trees and files of length zero.
/FAT :: Create a target file using only the 8.3 FAT file name.
/256 :: Turn off long path (> 256 characters) support.
/MON:n :: Monitors the source; runs again when more than n changes are found.
/MOT:m :: Monitor source; if it changes, run again in m minutes.
/RH:hhmm-hhmm :: Hours of Operation - The time at which a new copy can be started.
/PF :: Check the running hours based on each file (not every step).
/IPG:n :: The spacing (ms) between packages to free up bandwidth on low-speed lines.

Second, the file selection options:
of parameters:
/A :: copy only files with the archive attribute set.
/M :: Copy only files with archive properties and reset archive properties.
/IA:[RASHCNETO] :: Only files with any given set of attributes are included.
/XA:[RASHCNETO] :: Exclude files with any given set of attributes.
/XF file [file]... :: Exclude files matching the given name/path/wildcard.
/XD Directory [Directory]... :: Exclude directories that match the given name/path.
/XC :: Exclude changed files.
/XN :: Exclude newer files.
/XO :: Exclude older files.
/XX :: Exclude redundant files and directories.
/XL :: Exclude isolated files and directories.
/IS :: contains the same file.
/IT :: Contains adjusted files.
/MAX:n :: Maximum file size - Exclude files larger than n bytes.
/MIN:n :: Minimum file size - Exclude files smaller than n bytes.
/MAXAGE:n :: The longest file exists - excludes files older than n days/date.
/MINAGE:n :: The shortest file exists - excludes files older than n days/date.
/MAXLAD:n :: Maximum Last Access Date - Exclude files that have not been used since n.
/MINLAD:n :: Minimum last access date - Exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).
/XJ :: Exclude joints. (usually included by default).
/FFT :: Assume FAT file time (2 seconds granularity).
/DST :: Make up 1 hour of DST time difference.
/XJD :: Exclude the junction of the directory.
/XJF :: Exclude the junction of the file.

Third, the retry option:
of parameters:
/R: n :: retry failed copies: default is 1 million.
/W:n :: Wait time between retries: The default is 30 seconds.
/REG :: Save /R:n and /W:n in the registry as the default settings.
/TBD: Waiting to define the share name (retry error 67).

four logging options:
of parameters:
/L :: only list - not copy, timestamp or delete any files.
/X :: Report all the extra files, not just the selected files.
/V :: Generate detailed output and display skipped files.
/TS :: The timestamp of the source file is included in the output.
/FP :: Include the full path name of the file in the output.
/BYTES :: Print size in bytes.
/NS :: No size - Do not log file size.
/NC :: No category - File categories are not recorded.
/NFL :: No file list - Do not record file names.
/NDL :: No directory listing - Directory names are not recorded.
/NP :: No progress - The percentage copied has not been displayed.
/ETA :: Shows the expected arrival time of the copied file.
/LOG: File:: Output status to log file (overwrite existing log).
/LOG+: File:: Outputs the status to a log file (attached to an existing log).
/UNILOG: File:: Outputs the status to a log file (overwriting the existing log) in UNICODE mode.
/UNILOG+: File:: Outputs the status to a log file (attached to an existing log) in UNICODE mode.
/TEE :: Output to the console window and log files.
/NJH :: No job headers.
/NJS :: No job summary.
/UNICODE :: Output status in UNICODE mode.

V. Job Options:
Parameter Explanation:
/JOB: Job Name:: Extract parameters from the named job file.
/SAVE: Job Name:: Save the parameters to the named job file
/QUIT :: Exit after processing the command line (to view the parameters).
/NOSD :: The source directory is not specified.
/NODD :: The target directory is not specified.
/IF :: Contains the following files.

Copyright © Windows knowledge All Rights Reserved