-
Hi!
I want to make a backup program which loops through all the directories and files on a drive of my computer and checks if the current directory or file exists on another specified drive. If not, it creates the directory or copies the missing files. If a newer version of a file exists it would be updated.
I'm not asking you for a fully coded solution, however I would greatly appreciate if someone could point me in the right direction.
Thanks in advance,
Nina.
-
Use the FileSystemObject it's probably the easiest way for a VB developer to go thrugh the directory tree.
To check if a file has been altered you could do what most backup programs do, check the Archive attribute of the file.
You can do that with the Attributes property of the FileSystemObject. If the attribute is set then copy the file and then remove the attribute.
Good luck!
-
Well, my program seems to work now ...
however, I was wondering if anyone of you could take a look at my code, give me some comments on it or suggestions, how to make it faster.
If you'd like to, send me an email to [email protected] or post you email address here, so I could send it to you.
Thanx a lot,
Nina