Robocopy files only with a certain date

0

1

I am looking to copy files from x: to z: only if the destination file has a date changed of 9/23/2014. If the destination file has an older or newer date, don't touch it. X is my backup and Z is the file server.

For example

z:\test1.log 9/18/2014
z:\test2.log 9/23/2014
z:\test3.log 9/27/2014

I want Robocopy to look @ the three files on Z, and only copy the files that are in Z as being modified 9/23/2014.

Leo

Posted 2014-10-22T20:30:50.123

Reputation: 1

Robocopy can't do that on it's own. Use PowerShell and write a script to detect which files should be (robo)copied. – Ƭᴇcʜιᴇ007 – 2014-10-22T20:42:09.663

Have a look at the FORFILES command: http://ss64.com/nt/forfiles.html

– Axel Kemper – 2014-10-22T21:25:49.193

1Robocopy has a /MAXAGE:n and a /MINAGE:n parameter to exclude files elder/newer than n days. If the wanted day is 7 days before today, you could try to combine /MAXAGE:7 and /MINAGE:7 – Axel Kemper – 2014-10-22T21:29:53.517

No answers