Hello all,

What is the best way to copy files over a network? The remote server will
be accessed via http, and the files copied to a local drive.

I have tried using the System.IO.File class, but get URI errors when
accessing the remote files.

Thanks, Mike

Re: Copying files via URI by Joerg

Joerg
Mon May 24 15:24:33 CDT 2004

Mike Best wrote:
> Hello all,
>
> What is the best way to copy files over a network? The remote server
> will be accessed via http, and the files copied to a local drive.
>
> I have tried using the System.IO.File class, but get URI errors when
> accessing the remote files.

Try either WebClient or HttpWebRequest/HttpWebResponse.

Cheers,

--
Joerg Jooss
joerg.jooss@gmx.net

Re: Copying files via URI by Chad

Chad
Wed May 26 13:44:42 CDT 2004

"Mike Best" <mbest@kaplanit remove com> wrote in news:e0PQjHcQEHA.808
@tk2msftngp13.phx.gbl:
> What is the best way to copy files over a network? The remote server will
> be accessed via http, and the files copied to a local drive.

You need to do an HTTP download. You can do that using Indy, which is free:
www.indyproject.org

HTTP demo at:
www.atozed.com/indy


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/