home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example11.ftp
- ; =============
- ; This example shows how to check if a file transfer
- ; succeeded or not by checking the "SUCCESS" flag!
- ; -----------------------------------------------------
- ; This example also shows the use of this command:
- ; Message "text..."
- ; -----------------------------------------------------
- ; NOTE: This is just a sample - you are unable to
- ; execute the script unchanged... ;o)
- ; *****************************************************
-
- ; ******* First provide the Login information...
-
- ; DialEntry="xxxxxxx"
- ; DialLoginUser="xxxxxxx"
- ; DialLoginPassword="xxxxxxx"
- Host=ftp.yourhost.net
- Port=21
- User=your.username
- Password=your.password
- ; Proxy=
- ; ProxyPort=21
-
- ; ******* Timeout in seconds...
- Timeout=120
-
- ; ******* ...Dial up if not already connected to the Internet...
- ; Dial
-
- ; ******* ...and then connect to FTP host...
- connect
-
- ; ******* Command sequence...
-
- remote-cd "/myfiles"
- binary
- send "c:\autoexec.bat" "autoexec.bat"
- ; Success is a flag that indicates good or bad transfers
- if Success then
- Message "Send completed successfully"
- endif
-
- ; ******* Afterwards, disconnect from host!
- disconnect
-
- ; ******* At last, Hangup Internet connection!
- ; Hangup
-