Download several files from the Internet

by Jul 4, 2011


I would like to download several PDF-files from a directory of an internet server which I can access seperately with a dialog. This is very inconvenient. If I had a list of the filenames (which I don't have) I could use something like

   $wc = New-Object System.Net.WebClient

   $wc.DownloadFile(http://www.source.adress, C:PDFFilename.pdf)

with a loop. Does anybody know how to determine the filenames in that directory or to simply download all of them?

Regards, Hubert