Solved download

Posted on 2009-04-27
Last Modified: 2012-06-21
I want to develop a visual basic application that can go to a website and download a file.

For example the I am going to get a link similiar to:

I want the program with no user interaction go to the link above download the file save it, in a particuliar location, and extract the file to a seperate location. Any examples on how to accomplish this would be greatly appreciated.
Question by:lothos123452000
    LVL 13

    Expert Comment

    LVL 12

    Accepted Solution

    If you want no interaction, you'll need a service or startup app with a timer (trigger), or a scheduled task.

    You'll need a System.Net.WebClient to browse to the site:

    Then, the DownloadData method can get the file:

    Optionally, save the .zip to the filesystem:

    Finally extract the zip file. There are many option for zip file handling. Perhaps this one will work for you:

    Author Closing Comment

    Thanks for the help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
    Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again … provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now