Checking Transfer Progress

Use the TotalSize, TransferredSize, Speed, TimeLeft, and TimeElapsed properties to determine a transfer's progress and various other aspects of the transfer.

Syntax

long Object.TotalSize (long taskIdx) = size in bytes

long Object.TransferredSize (long taskIdx) = size in bytes

long Object.Speed (long taskIdx) = bytes/second

long Object.TimeLeft (long taskIdx) = seconds

long Object.TimeElapsed (long taskIdx) =seconds

Parameters

TaskIdx

This is the task index in the array of tasks created by asynchronous methods [0.. AsyncTaskNumber minus one, or - 1 (last asynchronous task started)]

It has a default value of - 1 = current task.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.Host = host 'set all relavant host, login, pass, etc. properties

MySite.Download "aaa", "c:\temp"

MsgBox "Size: " & MySite.TotalSize & ", speed: " & MySite.Speed & ", time: " & MySite.TimeElapsed