
ROBOCOPY "source" "destination" /S /MINAGE:n.To copy all the files created before a certain period, from one folder (and its subfolders), to another folder, give this ROBOCOPY command:* ROBOCOPY "C:\4test" "F:\4testbackup" /S /MOVEĬ.ROBOCOPY "C:\4test" "F:\4testbackup" /SĮxample1: To move all the files and subfolders from the 'C:\4test' folder, to the folder 'F:\4testbackup', the command is:.To copy all the contents (files and subfolders), from one folder to another, give this ROBOCOPY command:Įxample1: To copy all the files and subfolders of the 'C:\4test' folder, to the folder 'F:\4testbackup', the command is: ROBOCOPY "C:\4test" "F:\4testbackup" /MOVEī.To copy only the files (without the subfolders), from one folder to another, give this ROBOCOPY command:Įxample1: To copy the files of the 'C:\4test' folder, to the folder 'F:\4testbackup', the command is:Įxample2: To move all the files of the 'C:\4test' folder, to the folder 'F:\4testbackup', the command is: According the action you want to perform, give one of the corresponding commands below:Ī. Open PowerShell or Command Prompt as Administrator.Ģ.
Robocopy only new files how to#
How to Batch Copy or Move Files Using ROBOCOPY.ġ. This tutorial contains instructions on how you can copy or move, a large set of files to another location, by using ROBOCOPY. After some searching, I discovered that the more reliable way to perform that task is by using Microsoft's ROBOCOPY utility.



A few days ago, a client asked me to move a large set of files, based on their extension and oldness, to another location (drive), in order to save space on the source disk.
