Closing the Transfer Engine (Close)

Use the Close function to exit the Transfer Engine. You can include parameters to only exit on certain conditions.

Syntax

Object.Close (BSTR bstrParameter)

Parameters

""(default empty), "CLOSE", "EXIT"

Closes TE (all tasks will be stopped)

"EXITNOPENDING"

Closes TE if no pending tasks available

 

You can use any number of spaces or underscores inside these parameters. For example, "exit no pending" and "_EXIT_NO_PENDING_" are the same.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.LocalFolder = "c:\temp"

MySite.TransferURLAsync "ftp://ftp.cuteftp.com/pub/cuteftp"

MySite.Close "EXITNOPENDING"