My problem is in regards file copying performance. We have a media management system that requires a lot of moving files around on the file system to different locations inc
Try to remove the Flush call, and move it to be outside the loop.
Sometimes the OS knows best when to flush the IO.. It allows it to better use its internal buffers.