How to copy only new files AND only those that are modified after a certain date using Robocopy

Robocopy allows to copy files from one location to another on Windows. The simple syntax to copy the folder and all its content to another location is as follows:

robocopy C:\source_folder D:\destination_folder

If we want to copy only those files that are modified after a certain date(Eg: 15 October 2018) then it can be achieved using the following syntax:

robocopy C:\source_folder D:\destination_folder /E /MAXAGE:20181015

Advertisements
This entry was posted in Command Line and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s