Tag Archives: download file

Download a File from the Internet to the Hard Drive using VB 2005 and Higher

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

This will simply download a file from the internet to your harddrive path using Visual Basic .NET 2005 and Higher up to VB 2008, and VB 2010. This code snippet uses the Network class under the MY interface that was introduced in Visual Basic 2005.

        'Download a specified file from the internet and put it in the specified directory.
        My.Computer.Network.DownloadFile("http://www.webAdress.com/page.html", "c:\thePage.html")