home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example9.ftp
- ; =============
- ; This example WAITS until a special local file exists
- ; and when it does, it is sent to a remote FTP server.
- ; -----------------------------------------------------
- ; NOTE: This is just a sample - you are unable to
- ; execute the script unchanged... ;o)
- ; *****************************************************
-
- ; ******* First provide the Login information...
-
- Host="ftp.yourhost.net"
- Port=21
- User="your-username"
- Password="your-password"
-
- ; ******* Timeout in seconds...
- Timeout=60
-
-
- ; ### Wait for the file to exist...
- Waitforfile "D:\MyData\Files\Myfile.dat"
- ; ### Wait 10 second before sending it...
- Waitseconds "10"
-
- ; ******* ...and then connect to FTP host...
- connect
-
- ; ******* Command sequence...
- Binary
- Send "D:\MyData\Files\Myfile.dat" "/mydata/files/myfile.dat"
-
- ; ******* Afterwards, disconnect from host!
- disconnect
-
-