정보/기술/PC
웹서버에서 화일을 다운로드 받기 VB.NET
leeyongwan
2011. 1. 27. 02:30
Dim ad As String = "http://www.mydomain.com/"
Dim fn As String = "Alien 2.bmp"
Using client As New System.Net.WebClient
client.Credentials = New System.Net.NetworkCredential("id", "pwd")
client.DownloadFileAsync(ad + fn, "c:\" + fn)
End Using
Dim fn As String = "Alien 2.bmp"
Using client As New System.Net.WebClient
client.Credentials = New System.Net.NetworkCredential("id", "pwd")
client.DownloadFileAsync(ad + fn, "c:\" + fn)
End Using