troubleshooting Question

vbscript to read config file and copy files

Avatar of kapilpatry
kapilpatry asked on
ProgrammingVB ScriptScripting Languages
12 Comments1 Solution1609 ViewsLast Modified:
Hi, I need help in this vbscript. Purpose is to read a config.ini file which has some info like:
[GROUP1]
server1
server2
server3

[GROUP2]
server1
server2
server3

[GROUP3]
server1
server2
server3

The script should read each GROUP seperately in the .ini file and copy the logs from say: d:\logs to \\BACKUPServer\o$\logs. The requirement is to copy only the new files and not all the files that exist in the source path. Also, the script should create seperate GROUP folders and server folders on the destination path.

I am able to copy the files from source to destination using FileSystemObject but I am stuck at how to read each GROUP in the .ini file and do the recursive task of creating the respective GROUP,server folders and copy only the new logs.

Any help / suggestions / ideas is much appreciated.
ASKER CERTIFIED SOLUTION
merowinger

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros