Sending Commands to the Transfer Engine (TECommand)

Use the TECommand method to pass various commands to the Transfer Engine component. If you leave the Transfer Engine running for a long time, it is recommended you include the DeleteFinished or DeleteAll in your scripts to occasionally empty the queue. The Transfer Engine does not empty the queue automatically.

Syntax

Object.TECommand(BSTR bstrParameter)

Parameters

"CLOSE" or "EXIT"

Closes the TE (all tasks will be stopped)

"EXITNOPENDING"

Closes the TE if no pending tasks are available

"UPDATESETTINGS"

Reloads settings from the registry (Note you can modify the registry from VBS)

"DELETEFINISHED"

Removes finished items from queue

"DELETEALL"

Removes all items from queue

 

You can use any number of spaces or underscores inside these parameters. For example, "update setting" and "_UPDATE_SETTINGS_" are the same.

If the Transfer Engine has several tasks, or must run for a long time, you should include the DeleteFinished command in your scripts to occasionally clear items from the queue.

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.TECommand("delete finished")