EZftp12 Demos

Properties and Methods

Parameters Comments


Properties



<param name="FileList" Value="FileName.ext">


<param name="FileList" Value="FileName.LST">

<param name="FileList"
Value="Files=N|1|HostName=ftp.tripod.com|
UserID=iamatiyam|PortSet=&h..................|
HostDir=setup/|HostFile=File1.ext|
LocalDir=$(Win)|LocalFile=*.*|
GetPut=GET|Event=Play|2|......etc">

Methods




<SCRIPT language = "VBScript"
call EZftp12.HostParms([HostName], [UserID],
[PortSet], [Password], [HostDir])</SCRIPT>

<SCRIPT language = "VBScript"
call EZftp12.ButtonProperties([Visible], [Enabled],
[Caption])</SCRIPT>

<SCRIPT language = "VBScript"
call EZftp12.Environment([TempDir], [LogErrors],
[LogBaud])</SCRIPT>

In previous versions of this control, Host parameters, Local
parameters, Events, etc. were controlled by <OBJECT> properties.
In this version, these variables are controlled by <OBJECT>
methods. The only Property in this version is FileList


Downloads a single file


Downloads a script file and execute instructions.

Transfers a list of files. The instruction set available to this method is
the same as that contained in a *.LST file. If you only want to transfer a
few files "once-only" this is the preferred method because you don't
have to create and post a *.LST file.


To invoke control Methods, you use VBScript in the HTM document
outside of the <OBJECT> Tag



Sets the Host Name, User ID, Password, and Host Directory. Each parameter is optional and, if left blank, will assume the default value.


By default, the Command button is Visible, Enabled, and the Caption is "Begin File Transfer..." Each of these properties may be changed using this method.

By default, the base Temporary Directory is C:\Temp, Errors are recorded in Errors.log, and Baud rates are calculated and logged in Baud.log. With this method you can re-assign the TempDir and disable logging.

 

Instruction Sets

Sample Setup.lst

Meaning of Scripted Instructions

Instruction Set and Default Values

[Main]
Files=8

[File001]
HostDir=sounds/
HostFile=blip.wav
LocalDir=$(Prg)\

[File002]
HostFile=HP00.ICO
HostDir=pics/
LocalDir=$(Prg)\pics\

[File003]
HostFile=HP01.ICO

[File004]
HostFile=HP02.ICO

[File005]
HostFile=HP03.ICO
Event=Show

[File006]
HostFile=HOME1.ICO

[File007]
HostDir=system/
HostFile=msinet.oc_
LocalFile=MSInet.ocx
LocalDir=$(win)\System\
Event=

[File008]
HostDir=setups/
HostFile=HomePage.ex_
LocalFile=HomePage.exe
LocalDir=$(Prg)/
Execute=Button

Transfer 8 Files

File 1 --> Download .../sounds/blip.wav
to C:\Temp\[code]\blip.wav
and (later) tranfer to
C:\Program Files\...\blip.wav

File 2 --> Download .../pics/HP00.ICO
to C:\Temp\[code]\HP00.ICO
and (later) tranfer to
C:\Program Files\...\pics\HP00.ICO

The HostDir and LocalDir
persist unless otherwise scripted.
Thus, File 3, 4, 5, and 6 are also
downloaded from .../pics/... to
C:\Temp\[code]\ and (later)
tranferred to C:\Program Files\...\pics\

Files 5 and 6 are displayed in the Image
next to the Command button.
("Event=Show" persists, but is cancelled
by the "Event=" instruction of File 7).



File 7 --> Download \system\MSInet.oc_
to (Windows)\System\MSInet.ocx.
(Compressed files are automatically
decompressed).


File 8 --> ../setups/HomePage.ex_ is
downloaded to C:\Temp\[code]\...
and will be executed and installed in
C:\Program Files\HomePage\ if the Client
clicks the Command button. If the Client
clicks the Cancel button, all downloaded
files will be deleted.
Files=
GetPut=


HostName=
UserID=
PortSet=

HostDir=

HostFile=


LocalDir=




LocalFile=


Event=


Execute=


Command=



Number of files to transfer
GET = Download file
PUT = Upload file
Default is GET
Default is ftp.tripod.com
Default is iamatiyam
Coded Password
Default is &h1941c94ccc21fa221d3b197
Remote directory
Default is blank (root directory)
*.* = Same as LocalFile
*.(???) = Rename Extender
Default is *.*
Final Destination directory
$(Win) = Windows folder
$(Prg) = \Program Files\...\
$(Tmp) = C:\Temp\[Code]
Default is C:\Temp\[Code]
*.*
= Same as HostFile
*.(???) = Rename Extender
Default is *.*
Show = Display if Graphic file
Play = Play if Audio file.
Default is "do nothing"
Now = Execute when downloaded
Button = Execute on button click
Default is "do nothing"
Command line arguments
Default is HostName|UserID|
HostDir|TempDir|PortSet|
so that the downloaded
Program will know the Host parameters
and where to find Setup.lst.