In Windows, when you want to transfer files from a place to another you usually use the standard Copy/Paste/Move process, but it comes with a downside, it only use one thread on your system which is insane on an recent operating system, now mainly used on multi-threaded systems.

Depending on your system, the read/write performance of your disk can be the main bottleneck for file transfer speed, but if you are using a fast SSD/HDD, the number of used cores can be the bottleneck of your file transfer speed.

To prevent this, you can use a Microsoft command line utility called « Robocopy » for « Robust File Copy » with a special option for Multi-Threading.

This tool is available since Windows Server 2012 and on Windows 10 and above.

Photo by Mike van den Bos / Unsplash

How to use the multi-threaded option in Robocopy

  1. Open the Command Prompt (CMD) as an administrator
  2. Use the following command to use the multithreaded copy option
robocopy C:\Source D:\Source /MT:NUMBER_OF_THREADS

Copy in multithreaded mode

Robocopy command parameters

Full original list can be found on the original Microsoft documentation

The default number of used threads with the MT option will be 8, Robocopy will try to copy eight files simultaneously by default. However, Robocopy supports from 1 to 128 threads.

Note that depending on your setup, you may not notice improvements on your copy process. But it’s usually way more efficient when moving a large amount of files.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *