Download a file from a website in Visual Basic .NET
Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013
To download a file from a website add the following code:
The first part is the destination of the file that sitting on the server, and the second part is destination on your computer where you want to download the file to.
My.Computer.Network.DownloadFile("http://www.domain.com/file.txt", _ "C:\yourpath\file.txt")