home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example 1.ftp
- ; =============
- ; This example simply connects to TransSoft's FTP site,
- ; renames a local file and sends it.
- ; *****************************************************
-
-
- ; ******* First provide the Login information...
-
- Host="ftp.transsoft.com"
- Port="21"
- User="anonymous"
- Password="you@your.net"
-
- ; ******* Timeout in seconds...
- Timeout=60
-
- ; ******* ...and then connect to FTP host...
- connect
-
- ; ******* Command sequence...
- Local-rename "c:\myfile.dat" "c:\filetosend.dat"
- remote-cd "/pub"
- send "c:\filetosend.dat" "newfile.dat"
-
- ; ******* Afterwards, disconnect from host!
- disconnect
-
- ; ******* At last, Hangup Internet connection!
- ; Hangup
-
-