I am using the following code:
my.Computer.FileSystem.CopyDirectory(path, path, true)
However, I think this copies the entire directory even if one single file is changed in a directory. Is this true?
If so, is there any validation I can put it to say only update the file not the entire folder? My application is going to be run on a network with about 300 computers each copying over 300 MB, so it could cause the network to crash or slow if it is trying to copy over ever directory everytime even if only one file is changed.
You could try to execute in an hidden command prompt the command XCOPY.
For example:
will copy every modified file from the source dir to destination dir without asking for overwrite confirmations
You could write something like this