Use robocopy to copy a large number of files in windows.

Source: Internet
Author: User
Tags robocopy

I wrote a blog earlier: xcopy is recommended for copying a large number of files in windows. We recommend that you use robocopy in the comments of netlog.

The use of robocopy not only greatly improves the replication efficiency, but also provides powerful features.

 

Use robocopy source DESTIN/E to copy files. In this case, the target directory DESTIN is empty. It takes 22 minutes to copy the file. The statistics are output by robocopy.

 

 

Run the robocopy source DESTIN/e command again to copy the file. At this time, the target directory already has the file that was last copied. The result takes only one minute.

It indicates that robocoy checks whether the source and target files are consistent before copying. If they are consistent, the replication efficiency will be greatly improved when the source directory and target directory have the same files.

 

In addition, robocopy provides many features not available in xcopy:

  1. You can copy multiple file types to the target folder.
  2. Specifies the file type that is not copied during replication.
  3. You can specify the number of times the directory is copied. For example, you can only copy two levels of directories.
  4. You can copy files based on their modification time or access time. For example, you can copy files modified within three days.
  5. Copy files larger than kb and smaller than 1 MB by file size.
  6. Image mode. Objects in the target folder but not in the source folder are deleted during copy.
  7. Supports file Movement
  8. Monitor the folder. Once the files in the folder change, the changed files are automatically copied.

You can type robocopy/? In the command line /? View.

 

Robocopy is a replication tool provided by Microsoft in Windows Server 2003 Resource Kit tools. The execution file of robocopy can be found in the installation directory of resource kit tools.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.