[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 3645 Date : 2003-02-05 Author : Garry Deane Subject : Re: copying files after certain dates Size(KB) : 2
--- In xxcopy@yahoogroups.com, Kan Yabumoto wrote: >If you want to > use either the creation time (/FC) or the last-access time (/FA), > you may do so by adding the switch. But, in XXCOPY's timestamp > related operations, there will be only one (out of the three) > timestamp that will be chosen for a given file. There is > no one operation which uses all three in one breath. > > So, if you want to copy files from C:\test\ to D:\test\ > using *ALL* three timestamps, you need to run three separate > commands: > > xxcopy c:\test\ d:\test\ /DA:2000 /FW > xxcopy c:\test\ d:\test\ /DA:2000 /FC > xxcopy c:\test\ d:\test\ /DA:2000 /FA Surely this is not necessary. Since accessed >= written >= created, /DA:2000 /FA must necessarily also include those files which were created or modified after 2000-01-01. --- In xxcopy@yahoogroups.com, "dayvah49 " wrote: > Kan - I ran a test with /da:2003-1-1 and /fa to try and help > John and was surprised to find that the files selected had > dates *OLDER* than /da:2003-1-1 specified. Is this the correct > behaviour for those two switches and if so what good is > /da: combined with /fa ? > Or am I misunderstanding /fa ? I'm using v.2.82.8 in Win98. This is exactly the behaviour that might be expected. The last access time represents approximately the last time the file was opened. But as Kan has stated many times previously, the accessed time can be affected by many applications (e.g. viewing the file properties with explorer adjusts the accessed time in most flavours of Windows). A file's date as usually seen by explorer or a default DIR command is the date the file was last modified. This will always be older than or the same date as the last access time. Therefore you can have a file with say: Created: 2001-01-01 Modified: 2002-01-01 Accessed: 2003-01-01 Using /da:2003-1-1 /fa selects the file because it has been accessed after that date even though the modified date (which is what you see in explorer) is earlier. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.