Is robocopy the fastest way to transfer files?
The Tip of the Night for December 24, 2022 noted that using a PowerShell script to copy multiple files from multiple locations to another location will work faster than XCOPY.
There is some debate online about whether or not the robocopy command will be faster than Windows Explorer copying the contents of one directory to another folder. I decided to test Explorer, robocopy, xcopy, and PowerShell against one another to see if there was any real difference when copying a single data set to a new location.
A took a sample of1824 files in 17 folders which came to 7.13 GB, and ran commands to transfer them from an external solid state drive to the C drive of a Dell XPS laptop with 16 GB of RAM. There was little difference in the elapsed time for each method, so the thing to do is to keep it simple and use Explorer. I guess the jury is out as to whether robocopy would work faster on a network. I will try to test this soon . . .
Windows Explorer 1 minute 9 seconds
robocopy 1 minute 14 seconds
![](https://static.wixstatic.com/media/af7fa4_b6101fca5e8c423599dbf9c5b6ac60c4~mv2.png/v1/fill/w_937,h_368,al_c,q_85,enc_auto/af7fa4_b6101fca5e8c423599dbf9c5b6ac60c4~mv2.png)
![](https://static.wixstatic.com/media/af7fa4_39f19d91099741aeac9b66ae66a3ae1f~mv2.png/v1/fill/w_980,h_441,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/af7fa4_39f19d91099741aeac9b66ae66a3ae1f~mv2.png)
PowerShell 1 minute 14 seconds
![](https://static.wixstatic.com/media/af7fa4_676211c60902490689d1fa9c987cdef9~mv2.png/v1/fill/w_980,h_528,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/af7fa4_676211c60902490689d1fa9c987cdef9~mv2.png)
xcopy 1 minute 14 seconds
![](https://static.wixstatic.com/media/af7fa4_1d2bc35973b04d6eba78480b64e24cff~mv2.png/v1/fill/w_980,h_226,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/af7fa4_1d2bc35973b04d6eba78480b64e24cff~mv2.png)
Note that when using robocopy it's necessary to share the source folder, and run the command in the admin mode of command prompt.
![](https://static.wixstatic.com/media/af7fa4_a0e2c49dc4da4ec0ac04cfe58e548849~mv2.png/v1/fill/w_823,h_490,al_c,q_90,enc_auto/af7fa4_a0e2c49dc4da4ec0ac04cfe58e548849~mv2.png)
When setting the location for an external hard drive used as a source, copy the network path located under Properties. The device itself should have an alphanumeric code something like H4L34V8 - the code for my drive has been redacted in these screen grabs.
![](https://static.wixstatic.com/media/af7fa4_e7422becaba942e3bf5bb5dd87bb45f6~mv2.png/v1/fill/w_441,h_447,al_c,q_85,enc_auto/af7fa4_e7422becaba942e3bf5bb5dd87bb45f6~mv2.png)
Comments