I would like to make a vbs script that create a mirror of a directory (with folders, sub-folders, files ...) every day. Exactly like robocopy /mir can do...
Do you have any solutions ?
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
Well, if you were going to write one yourself, I would search this forum and especially look for FileSystemObject.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
I wouldn't think that would be particularly efficient or accurate. If you don't tell it to overwrite, then newer files in the source folder will not be updated in the copy folder. If you do tell it to overwrite, then every file will be copied even if it did not need to be.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
In addition, the /MIR option for robocopy will delete files in the target folder that no longer exist in the source folder. CopyFolder would not replicate this.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.