469,275 Members | 1,475 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

check file transfer complete

i have used asp.net to transfer a file from one server to another . i use
the system.io.file.copy to copy the file. But i want to know that how can
assure the file is transfer complete?? Do i need to check the file is exist
in the target location??? any another smarter way to do that??

million thanks.
Nov 19 '05 #1
2 1884
If the file transfer did not complete then an exception will be thrown on
the reason why. Wrap your code in a Try Catch Finally block and handle your
exception incase you encounter one
"Grey" <er****@hgcbroadband.com> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl...
i have used asp.net to transfer a file from one server to another . i use
the system.io.file.copy to copy the file. But i want to know that how can
assure the file is transfer complete?? Do i need to check the file is
exist
in the target location??? any another smarter way to do that??

million thanks.

Nov 19 '05 #2
When File.Copy returns, the file is at its destination.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Grey" <er****@hgcbroadband.com> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl...
i have used asp.net to transfer a file from one server to another . i use
the system.io.file.copy to copy the file. But i want to know that how can
assure the file is transfer complete?? Do i need to check the file is
exist
in the target location??? any another smarter way to do that??

million thanks.

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Philipp Brune | last post: by
5 posts views Thread by | last post: by
4 posts views Thread by Steph | last post: by
12 posts views Thread by Anders Eriksson | last post: by
10 posts views Thread by John Salerno | last post: by
2 posts views Thread by Erik Witkop | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.