Get size of file on ftp server before downloading

A

Adam

Hi,

How can I get the size of a file on an ftp server before downloading the
file. Basically I want to create a progress bar to show the progress of the
download as its being downloaded. If anyone could point me to any good
resources or explain what i need to do. I am using Visual Studio 2010 beta,
but code needs to be able to be run on 2.0 framework, if possible.

Thanks in advance,

Adam
 
M

Mike Lovell

How can I get the size of a file on an ftp server before downloading the
file. Basically I want to create a progress bar to show the progress of
the download as its being downloaded. If anyone could point me to any
good resources or explain what i need to do. I am using Visual Studio
2010 beta, but code needs to be able to be run on 2.0 framework, if
possible.

http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.getfilesize.aspx
(available in .NET Framework 2.0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top