Link to home
Start Free TrialLog in
Avatar of tferro999
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?
Avatar of Bill Prew
Bill Prew

So, is the directory structure of the two top level directories to be compared the same, and do the files need to be in the same subfolder tree to be a match?  Once I understand this I can provide some samples.

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
Avatar of tferro999

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.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial