home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example16.ftp
- ; =============
- ; This example shows how to use the RESUME-SEND command
- ; in combinaton with "if success.." and "Goto <Label>".
- ; ---
- ; This example would make the Script try and resume a
- ; file transfer until successful.
- ; -----------------------------------------------------
- ; NOTE: This is just a sample - for your information ;o)
- ; *****************************************************
-
- ; ******* First provide the Login information...
-
- Host="ftp.yourhost.net"
- Port="21"
- User="your.username"
- Password=" INK-n:┤LLJN-? "
-
- ; ******* Timeout in seconds...
- Timeout=120
-
- ; ******* ...and then connect to FTP host...
- connect
-
- ; ******* Command sequence...
-
- binary
-
- remote-cd "/myfiles"
-
- SEND "c:\myfiles\myfile.dat" "myfile.dat"
- if Success then
- Goto "Done"
- endif
-
- :Resume
- RESUME-SEND "c:\myfiles\myfile.dat" "myfile.dat"
- if Success then
- Goto "Done"
- endif
- Goto "Resume"
-
-
- :Done
- ; Now disconnect from FTP server...
- Disconnect
-