30. Download And Run File

In this tutorial, we cover how to download a file from an online server and then execute the file. This can be very useful if you ever want to update your application.


Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        My.Computer.Network.DownloadFile("url", "C:\downloadedfile.exe")
    End Sub

End Class