Windows 7 system powerful copy command robocopy operation method:
Run robocopy in the command prompt
Example: robocopy E: xutianlong F: xutianlong /E
Copy subdirectory, including empty subdirectories.
Parameter explanation
First, copy options:
Parameter explanation:
/S :: Copy subdirectories, but do 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 :: Monitor source; run 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, file selection options:
Parameter explanation:
/MAX: n :: Maximum file size - Exclude files larger than n bytes.
/MIN:n :: Minimum file size - Exclude files smaller than n bytes.
/MAXAGE:n :: Maximum file age - Exclude files older than n days/date.
/MINAGE:n :: The shortest file exists - exclude 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 for 1 hour of DST time difference.
/XJD :: Exclude the junction of the directory.
/XJF :: Exclude the junction of the file.
/A :: Copy only files with an 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.