Download files from internet

  • Thread starter Thread starter Lou Civitella
  • Start date Start date
L

Lou Civitella

How can I download files from the internet using VB.Net?

For example I would like to download this file
http://www.testsite.com/test.avi

Also a user name and password are required to download the file.

All I want to do is tell the program the file and download it to a specific
location on my computer.

Thanks In Advance,
Lou
 
Lou Civitella said:
How can I download files from the internet using VB.Net?

For example I would like to download this file
http://www.testsite.com/test.avi

Also a user name and password are required to download the file.

All I want to do is tell the program the file and download it to a
specific location on my computer.

\\\
Dim w As New WebClient()
w.Credentials = New NetworkCredential("username", "password")
w.DownloadFile(...)
///

BTW: I am curious why you posted this question to the Windows Forms group.
The name of the VB.NET group is "microsoft.public.dotnet.languages.vb".
 
Back
Top