Subject Re: Comparing Modification Date Between the same file name
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Fri, 24 Jun 2016 04:47:17 -0700
Newsgroups dbase.getting-started

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


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm