Copy a large number of files under Windows, use Robocopy

  
        

Using Robocopy, it was found that not only the replication efficiency was greatly improved, but also the function of robocopy replication was quite powerful.

Use robocopy source destin /e to copy files, at which point the destination directory destin directory is empty. It takes 22 minutes to copy the file. The statistics in the figure below are output by robocopy.

Execute the robocopy source destin /e command again to copy the file, and the target directory already has the last copied file. The result took only one minute.

Description Robocoy checks whether the source and destination files are consistent before copying. If it is consistent, it will not be copied, so the efficiency of copying will be greatly improved if the source directory and the target directory have the same file.

In addition, robocopy also provides a lot of features that xcopy does not have:

You can select multiple file types to copy to the target folder

You can specify not to copy when copying File type

can specify the level of the copy directory, such as copying only two levels of directory

can be copied according to the modification time or access time of the file, such as copying files modified only within three days

By file size, such as copying only files larger than 100K and less than 1M

Mirror mode, delete files that exist in the target folder but are not in the source folder when copying

Support file movement

Monitor folders, automatically copy changed files once the files in the folder change

The above functions can be typed in the command line by typing robocopy /?

robocopy is a copy tool provided by Microsoft in the Windows Server 2003 Resource Kit Tools. The executable file for robocopy can be found in the installation directory of the Resource Kit Tools.

Download the Windows Server 2003 Resource Kit Tools: http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe

Copyright © Windows knowledge All Rights Reserved