Robocopy + skip empty files

Is there a way to exclude copying empty files (0 bytes) using the robocopy command?

I have a source with thousands of empty files besides other files, and the destination also has the same file names, but not empty. I want to copy everything from source to destination, except empty files.

+4
source share
2 answers

Turn on the /MIN:1 command line switch, which tells Robocopy to ignore all files less than 1 byte in size.

From the documentation :

/ MIN: n: Minimum file size - exclude files less than n bytes in size.

+2
source

According to Robocopy documentation , you should just add /min: 1 to your arguments

0
source

All Articles