Versions des environnements
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() ?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement