Friday, May 12, 2017

Batch File - How to copy files over a certain size from one folder structure into the exact same folder structure

https://superuser.com/questions/877976/windows-command-line-to-move-files-over-a-certain-size

robocopy "C:\My Source" "C:\My Destination" /s /max:10000000 /mir /R:1 /W:1

/s - copy subdirectories
/max - limit filesize in bytes
/mir - mirror structure (mirrors deletes)
/R - max retries if file is open
/W - max wait time in seconds when retrying

No comments:

Post a Comment