I'm trying to find a way to make a backup of files within a folder and store them in a second folder.
Here is the scenario I am looking at.
Scenario (better explanation):
A & B are both folders,
I have file1, file2, and file3 in A. I have file2, file3, and file7 in B.
The script has to look at A and B and determine that file1 needs to be copied to B and that file7 needs to be deleted off of B. It also has to while compare file2 and file3, from both A & B to determine if B has the most recent copy.
There could be as litle as 5 files in these folders, or as many as 100.
I'm thinking I need to store the file names from both folders in a string array and then compare the string names to one another.
Any suggestions?
Here is the scenario I am looking at.
Scenario (better explanation):
A & B are both folders,
I have file1, file2, and file3 in A. I have file2, file3, and file7 in B.
The script has to look at A and B and determine that file1 needs to be copied to B and that file7 needs to be deleted off of B. It also has to while compare file2 and file3, from both A & B to determine if B has the most recent copy.
There could be as litle as 5 files in these folders, or as many as 100.
I'm thinking I need to store the file names from both folders in a string array and then compare the string names to one another.
Any suggestions?