1
Reply

Problem with System.IO.File.Copy method

Blair

Blair

Sep 30 2008 2:39 PM
7.7k

I have an Windows forms application that uses the File.Copy method to copy several files from a network file share to a folder on the local PC (the PC running the windows form application).  The problem I've run into is that sometimes, chunks of the file content are not copied.  For example, a 832Kb file on the network share is copied, but the size on the local folder is less than 100kb.  The file is readable, but not all of the content is present.  The troubling part of this is that no exception is thrown.  Anyone have an idea how this could happen and what I might be able to do about it?

 


Answers (1)