Transfer Engine (SDK)
Most of the time, you can assign a value to a property or retrieve its value into a variable.
You can set a property much like a local variable to your script.
Example
String Object.Protocol
The above property can accept a predefined set of string values or can be assigned to a
variable to retrieve the currently selected value. The default in this case is FTP .
You can assign a value to a property as follows:
Example
MySite.Protocol = FTPS
Upon subsequent connections, the TE will attempt to login using FTP over SSL, rather then
via FTP, the default attribute for this property.
Wildcard masks
Wildcard masks are patterns of special characters used to filter file names. When a wildcard
mask is matched against a file name, the two patterns are compared, letter by letter, from left
to right until a mismatch occurs. If all the characters in both patterns compare positively, the
file name matches the Wildcard Mask.
U
SING A SCRIPT TO CONNECT TO A REMOTE SITE
This script connects the TE to the public GlobalSCAPE FTP server and displays the words
Connected OK in a message box after a successful connection.
Set MySite= CreateObject("CuteFTPPro.TEConnection")
MySite.Option ("ThrowError") = False
MySite.Protocol = "FTP"
MySite.Host = "ftp.cuteftp.com"
if cbool(MySite.Connect) then
MsgBox "Connected OK"
else
MsgBox MySite.ErrorDescription
end if
MySite.Disconnect
MySite.Close
165
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