home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1999 April / CD_Shareware_Magazine_31.iso / WIN95 / INTERNET / ftpctrl3b8.exe / %MAINDIR% / Scripts / Example2.ftp < prev    next >
Encoding:
Text File  |  1999-02-07  |  1.1 KB  |  46 lines

  1. ; *****************************************************
  2. ; Example 2.ftp
  3. ; =============
  4. ; This example upgrades your current version of 
  5. ; FTP Control to the most recent release!
  6. ; After the file has been fetched the upgrade
  7. ; patch will be executed and you will be asked to
  8. ; close FTP Control before the upgrade can continue!
  9. ; *****************************************************
  10.  
  11. ; ******* First provide the Login information...
  12.  
  13. ; DialEntry="xxxxxxx"
  14. ; DialLoginUser="xxxxxxx"
  15. ; DialLoginPassword="xxxxxxx"
  16. Host="ftp.transsoft.com"
  17. Port="21"
  18. User="anonymous"
  19. Password="you@your.net"
  20. ; Proxy=
  21. ; ProxyPort=21
  22.  
  23. ; ******* Timeout in seconds...
  24. Timeout=120
  25.  
  26. ; ******* ...Dial up if not already connected to the Internet...
  27. ; Dial
  28.  
  29. ; *******  ...and then connect to FTP host...
  30. connect
  31.  
  32. ; *******  Command sequence...
  33.  
  34. remote-cd  "/pub"
  35. if remote-exists("ftpupgr.exe") then
  36.    binary
  37.    get "ftpupgr.exe" ".\ftpupgr.exe"
  38.    local-Exec ".\ftpupgr.exe"
  39. endif
  40.  
  41. ; *******  Afterwards, disconnect from host!
  42. disconnect
  43.  
  44. ; *******  At last, Hangup Internet connection!
  45. ; Hangup
  46.