tferro999
asked on
VBscript help
I'm a VBscript newbie in need of help.
I need a script that will recursively search through two directories and export a list of the files with their modified dates and archive bits into two different csv files. I then need to compare the two lists of files. For all files with matching modified dates but different archive bits, I want to set the archive so they are synchronized.
I don't expect anyone to write this for me, hopefully I can learn something here, but can anyone provide some code snippets for any of the steps I outlined above?
I need a script that will recursively search through two directories and export a list of the files with their modified dates and archive bits into two different csv files. I then need to compare the two lists of files. For all files with matching modified dates but different archive bits, I want to set the archive so they are synchronized.
I don't expect anyone to write this for me, hopefully I can learn something here, but can anyone provide some code snippets for any of the steps I outlined above?
ASKER
The directory structure should be the same, and they should be in the same subfolder tree to be a match.
I will be comparing a directory, lets say T:\backups with a snapshot of that same volume which would be mounted as S:\backups.
I guess I don't need to export the two lists of files. I would like to have a single file after comparing the date and attributes as a log file of what changes were made to the archive bit.
I will be comparing a directory, lets say T:\backups with a snapshot of that same volume which would be mounted as S:\backups.
I guess I don't need to export the two lists of files. I would like to have a single file after comparing the date and attributes as a log file of what changes were made to the archive bit.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, why export at all, why not just read all the files in the first directory, and for each file look for a match in the other directory. Then if the file exists, do your compare of date and attributes and correct as desired.
~bp