You can P/Invoke down to CopyFileEx and set COPY_FILE_RESTARTABLE
http://msdn2.microsoft.com/en-us/library/aa363852.aspx.

--MB

> -----Original Message-----
> From: Discussion of advanced .NET topics. [mailto:ADVANCED-
> [EMAIL PROTECTED] On Behalf Of Mont Rothstein
> Sent: Tuesday, December 18, 2007 1:21 PM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] Robust file copy
> 
> I am looking for a robust way to copy files across a network that has
> high
> latency and may be unreliable.
> 
> Currently I use a FileStream instead of File.Copy because the source
> account
> does not have permissions on the destination drive and vis-a-versa (I
> impersonate accounts over the network).
> 
> What I'm looking for is some way (either something in .NET or a 3rd
> part
> component) to perform file copies from code that will gracefully
handle
> connections that go up and down, continue when possible, and generally
> reliably deliver in the face of less than ideal network connections.
> 
> Now obviously I can wrap my current code in handlers and do this
myself
> but
> if the problem has already been solved I'd rather not re-invent the
> wheel.
> I've been Goggling but I can't find what I am looking for.
> 
> Any suggestions?
> 
> Thanks,
> -Mont
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to