home *** CD-ROM | disk | FTP | other *** search
- ; *****************************************************
- ; Example 2.ftp
- ; =============
- ; This example upgrades your current version of
- ; FTP Control to the most recent release!
- ; After the file has been fetched the upgrade
- ; patch will be executed and you will be asked to
- ; close FTP Control before the upgrade can continue!
- ; *****************************************************
-
- ; ******* 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("ftpupgr.exe") then
- binary
- get "ftpupgr.exe" ".\ftpupgr.exe"
- local-Exec ".\ftpupgr.exe"
- endif
-
- ; ******* Afterwards, disconnect from host!
- disconnect
-
- ; ******* At last, Hangup Internet connection!
- ; Hangup
-