>Is it possible that such a command does not lock the file?
>
>
>File.Copy(cSource, cDestination, lOverwrite)
>
>
>I am copying a file into a directory and in the middle of the copy, I have an access is denied. We believe this is because someone else took over the file. But, I assumed File.Copy would have locked the file during the process of the copy.
File.Copy uses the api CopyFile
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851(v=vs.85).aspxLooks like a permission issue
Gregory