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 |
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 |
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. |
|