mysterious robocopy problem - maxage minage

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
causative
Posts: 2
Joined: 18 Feb 2016 02:51

mysterious robocopy problem - maxage minage

#1 Post by causative » 18 Feb 2016 04:41

Hello
I use a very simple script:

Code: Select all

C:\windows\system32\robocopy.exe /A-:R D\test D\test1 /mov /MAXAGE:20150901 /MINAGE:20150930

and as a result some of my files from september 2015 are moved to the new folder and some of them are skipped.
I'm pretty sure that the problem is with whose files, not a script but I can't catch it.
If I check the files properties on those files I can see the date created and modification that is correct 2015-09-30.
Any ideas please :)
.....If anybody want I can send the example file (2KB and 49kb)

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: mysterious robocopy problem - maxage minage

#2 Post by foxidrive » 18 Feb 2016 13:54

Check to see what this shows in the cmd window.

Code: Select all

dir /od

pieh-ejdsch
Posts: 240
Joined: 04 Mar 2014 11:14
Location: germany

Re: mysterious robocopy problem - maxage minage

#3 Post by pieh-ejdsch » 19 Feb 2016 05:27

This is just Robocopy. The help is only one recommendation like a little bit could function.
What do not uncause is called that it has to go thus his.

Create now a new file. One day this file will not have even today the age.
The least date encloses the files created before the day.
With an entry of 1 during days the maximum datum will indicate the files from Yesterday and Today.

Code: Select all

/maxage:2 /minage:1
indicates you only the files from the day before yesterday.

You agree from files today indicated with:

Code: Select all

/maxage:TODAY

But you get no output with:

Code: Select all

/maxage:TODAY /minage:TODAZ


For all data from September, 2015 you take:

Code: Select all

/Maxage:20150901 /Minage:20151001


Phil

causative
Posts: 2
Joined: 18 Feb 2016 02:51

Re: mysterious robocopy problem - maxage minage

#4 Post by causative » 19 Feb 2016 08:47

foxidrive
I have already checked it and its OK

pieh-ejdsch
BRILLIANT idea THX very much!
but...... I have noticed one more thing the final correct version of script
is not: /Maxage:20150901 /Minage:20151001
but: /Maxage:20150831 /Minage:20151001 and all the files from September are moved :)

Post Reply