| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
Web File Download in VB.NET
|
Response Number 1
|
Name: drigz
Date: March 27, 2004 at 10:22:27 Pacific
|
Reply: (edit)yay! found it! Sub DownloadFile(ByVal uri As String, ByVal destFile As String, _ Optional ByVal username As String = Nothing, Optional ByVal pwd As String = _ Nothing) Dim wc As New System.Net.WebClient If Not username Is Nothing AndAlso Not pwd Is Nothing Then wc.Credentials = New System.Net.NetworkCredential(username, pwd) End If wc.DownloadFile(uri, destFile) End Sub
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home