Internet Transfer Control - download times

Posted on 2005-05-05
Last Modified: 2010-05-02
I am successfully using the Internet Transfer Control to download files via ftp and the .execute method
With InetOne
        .URL = "ftp://MySite"
        .UserName = "MyUserName"
        .Password = "MyPassword"  
        .execute , "GET www/FtpServer/MyFile " & app.path & "\MyFile"
        Do While .StillExecuting
        .execute , "CLOSE"
End With

This works fine however I want to be able to display the download progress so I need to be able to keep track of the number of bytes downloaded. How can I do this? Getting the size of the file is no problem - but how can I monitor the download?
Question by:jsb330
    LVL 13

    Accepted Solution

    Hi jsb330,
    You need to drop the internet transfer control for progress information - and jump to the "more direct" path using wininet.dll.
    Try these links for examples:
    LVL 26

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    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

    12 Experts available now in Live!

    Get 1:1 Help Now