Please Donate: The Leukemia & Lymphoma Society - Scenic Shore 150 Bike Tour [Donate Here]

Slow Copy Utility

February 15th, 2007

Due to my problems with copying large files over a USB 2.0 connection I created the SlowCopy Utility. (Offwhite.SlowCopy.zip) It is a command-line utility which takes a source and destination filename as well as an optional chunk size (MB) and wait time (seconds). I was able to copy that 2.6GB MSDN ISO file off my external drive successfully with this utility when a direct copy was failing after a few seconds. I did it with 100MB chunks with a 2 second wait. After 100MB it sleeps for 2 seconds which allows the buffer to clear before copying more data to the destination file.

The utility includes a configuration file which you can use to set the default chunk size and wait time as well as turn off the Verbose setting which writes out the progress as it reaches each of the sleep checkpoints.

This could also be useful when copying files over a network connected drive when connectivity fizzles out after enough data is passed. I once had a problem with an ethernet card which could not handle copying large files off my file server. This utility would have helped in that case.

Here is the code which makes it all work.

Comments are closed.