Environment versions
Network:
Windows 2003 Server
>>That's what I don't understand - what makes you believe that the copy has actually started ?
>
>That is the only one capable of copying a file in there. And, the error message can only be triggered if the file already exists, or a portion of it.
No. If you have overwrite 'true' then the fact that the destination already exists should not be a factor. See the code Gregory posted - an exception can be thrown if permissions fail.
>>Is 'MyFile' the source or destination ? What is the exception type ? Any inner exception ?
>
>Destination
>
>at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
> at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
> at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
> at Framework.FileFunction.CopyFile()
What's the errorCode in WinIOError() ?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only