CuteFTP Professional User s Guide
MySite.Option("ThrowError") = false `disable ATL
exceptions
if cbool(MySite.Connect) then
MsgBox "Connected OK"
else
MsgBox "Error! " &
MySite.ErrorDescription
Retrieving the server s home directory
Description
Use the HomeDir property to return a string value containing the name of the server's
home directory.
Syntax
String Object.HomeDir
Example
Set MySite = CreateObject("CuteFTPPro.TEConnection")
`Initialize all necessary fields for MySite : host name,
user, password, etc.
MsgBox "Home dir for server " + MySite.Host + " is: " +
MySite.HomeDir
Checking if a transfer is active
Description
Use the IsPending property to determine whether a transfer is active or if it is already
finished with success or error. This can be useful in combination with async commands or
during an interactive script. The IsPending property will return a value of either true or
false.
Syntax
Boolean Object.IsPending(long taskIdx)
Parameter
This is a task index in the array of tasks created by the various
asynchronous methods. [0.. AsyncTaskNumber minus one, or 1
(last asynchronous task started)]
TaskIdx
This has a default value (if nothing is specified) of ALL tasks.
Therefore, IsPending will return true if any task is still pending. It
will return false if none are pending.
Example 1
Set MySite = CreateObject("CuteFTPPro.TEConnection")
Regular connection code here:
MySite.Download inbound/*.*", "c:\temp"
If CBool(
MySite.IsPending
) Then
220
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved