vb.net后台http下载无提示覆盖文件

来源:互联网 发布:淘宝号改后台怎么查 编辑:程序博客网 时间:2024/05/16 19:44

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim url As String
        url = "http://localhost/system.dll"

        Dim path As String

        path = Environment.CurrentDirectory() & "/system.dll"
        Dim wc As System.Net.WebClient
        wc = New System.Net.WebClient
        wc.DownloadFile(url, path)

    End Sub 

原创粉丝点击