Skip to main content

Robocopy - Move files older than 60 days to archive folder

This line of code will move files from c:\temp to c:\temparchive that are older than 60 days. It makes a log file of what is moved in c:\temp\FileUnder60daysMoved.txt

robocopy c:\temp c:\temparchive /mov /MINAGE:60 /copyall /s >c:\temp\FilesOver60daysMoved.txt