Subject Comparing Modification Date Between the same file name
From kent <gkentperalta1987@gmail.com>
Date Fri, 24 Jun 2016 03:41:02 -0400
Newsgroups dbase.getting-started

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?

Thanks in Advance.