Subject Re: Comparing Modification Date Between the same file name
From Dick Snow <dickDOT.snowAT@poboxDOT.com>
Date Fri, 24 Jun 2016 10:23:52 -0400
Newsgroups dbase.getting-started


Or save yourself lots of programming time by using something like
RoboCopy.

Ken Mayer <dbase@nospam.goldenstag.net> wrote:

>On 6/24/2016 12:41 AM, kent wrote:
>> Hi ,
>>
>> is there any code for this?
>> The scenario is this :
>>
>> I have 2 different folders "FOLDER A" and "FOLDER B" ,
>> Folder A is the active Folder Database , Folder B is the back up Folder.
>> Now I want to compare (a loop) all the content of both folders base on their modification date.
>>
>> Conditions are as follows:
>>
>> A.  If a file name from The Folder A has different modification (more advance in date) date as with Folder B , system will copy the file from Folder A overwriting File to the folder B.
>> B. if a file name from Folder A has the same modification date as compared to folder B , system will do nothing.
>> C. if a file name from folder A is not present to the folder B , system will copy file to Folder B.
>>
>> is this possible?
>
>Look at the file class:
>
>help class file
>
>in the OLH. The date() method returns the date a file was last modified ...
>
>Ken