While, it probably won't speed up the act of copying the files themselves, if you're using .Net 4.0 you can use Directory.EnumerateFiles() instead of Directory.GetFiles().
GetFiles returns an array of strings containing the name of each file. Whereas, EnumerateFiles can be enumerated and returns one file name at a time which helps save some memory.




Reply With Quote
