VB 2010: Copy Directory Without Overwriting
Alright, so it is very easy to copy one directory to another with this-
Code:
My.Computer.FileSystem.CopyDirectory("C:\TestDirectory1", "C:\TestDirectory2", True)
The only problem is, this overwrites the existing directory. I would like to "merge" the two directories. Now this seems simple because you can just
change the "True" to "False" like so-
Code:
My.Computer.FileSystem.CopyDirectory("C:\TestDirectory1", "C:\TestDirectory2", False)
This would normally work fine, but the two directories I am merging, have some of the same named files.
So how do I make it "merge" the folders, but "overwrite" the duplicate files/folders (without asking the user)?
Any links/examples are much appreciated!
Hunter
Re: VB 2010: Copy Directory Without Overwriting
Re: VB 2010: Copy Directory Without Overwriting