引用來源
請參考:Download and Upload using VB.NET
--
Dim FilenameMP3 As String = "http://ap.a168a.com/test/您要下載的位址檔名"
Dim SaveLocation As String = "d:\001test.zip" '要存放的檔案位置
Try
My.Computer.Network.DownloadFile(FilenameMP3, SaveLocation, "", "", True, 8000, True, FileIO.UICancelOption.ThrowException)
Catch ex As System.OperationCanceledException
MsgBox("下載被取消")
End Try
沒有留言:
張貼留言