By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

DownloadFile

P: n/a
I am trying to write a program to download files from the Internet, I know
using
webClient.Downloadfile(RemoteDir + remoteFileName, LocalFileName) can
download a singles file,
my question is, if we know a remote Dir, can we find all files in that dir?
(like Directory.Getfiles(Dir))
that way we can download all files in that directory.

Thank you very much.

Mike

Jul 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
Hi Mike,

From the Pentagon?

For that is FTP.

But only for FTP sites of course.

I know it helps not much, but if you find it, there are more intrested in
that.

Cor
I am trying to write a program to download files from the Internet, I know
using
webClient.Downloadfile(RemoteDir + remoteFileName, LocalFileName) can
download a singles file,
my question is, if we know a remote Dir, can we find all files in that dir? (like Directory.Getfiles(Dir))
that way we can download all files in that directory.

Jul 21 '05 #2

P: n/a

"Mike Lincoln" <ml*********@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
I am trying to write a program to download files from the Internet, I know
using
webClient.Downloadfile(RemoteDir + remoteFileName, LocalFileName) can
download a singles file,
my question is, if we know a remote Dir, can we find all files in that dir? (like Directory.Getfiles(Dir))
that way we can download all files in that directory.


It depends on which protocol you will use. What protocol are you planning to
use?
Jul 21 '05 #3

P: n/a
Thank you guys for replying.

I am using HTTP protocal.

For example, I want to download all pictures from http://localhost/Images/,
what should I do?
"Mike Lincoln" <ml*********@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP10.phx.gbl...
I am trying to write a program to download files from the Internet, I know
using
webClient.Downloadfile(RemoteDir + remoteFileName, LocalFileName) can
download a singles file,
my question is, if we know a remote Dir, can we find all files in that dir? (like Directory.Getfiles(Dir))
that way we can download all files in that directory.

Thank you very much.

Mike

Jul 21 '05 #4

P: n/a
"Mike Lincoln" <ml*********@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP10.phx.gbl...
Thank you guys for replying.

I am using HTTP protocal.
You can use WebClient thats built into .net, or you can use Indy:
http://www.indyproject.org/indy.html

Indy support many more options than WebClient does.

And don't worry - its not commercial, its open source and free.
For example, I want to download all pictures from http://localhost/Images/, what should I do?


Well thats kind of a problem. SOME webservers will give you a directory
listing, some wont. If they do you have to go through the HTML and pluck out
the URLs and request for each one.
Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.