home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example 3.ftp
- ; =============
- ; This example shows how you can fetch one file from
- ; a FTP site and post the same file autopmatically to
- ; another!
- ; PLEASE NOTE: This will not run for you unless you
- ; change the script so that it connects to a site
- ; where you have "write" permission.
- ; *****************************************************
-
- ; ******* First provide the Login information...
-
- ; DialEntry="xxxxxxx"
- ; DialLoginUser="xxxxxxx"
- ; DialLoginPassword="xxxxxxx"
- Host="ftp.transsoft.com"
- Port="21"
- User="anonymous"
- Password="you@your.net"
- ; 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 "/pub"
- if remote-exists("/pub/ftpupgr.exe") then
- binary
- get "ftpupgr.exe" ".\ftpupgr.exe"
- endif
-
- ; ******* Afterwards, disconnect from host!
- disconnect
-
- ; Start a new connection for destination:
-
- Host=ftp.centrum.is
- Port=21
- User=anonymous
- Password=you@your.net
- ; Proxy=
- ; ProxyPort=21
-
- Timeout=120
-
- connect
-
- remote-cd "/pub/TransSoft"
- send ".\ftpupgr.exe" "ftpupgr.exe"
-
- disconnect
-