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

  1. ; *****************************************************
  2. ; Example 3.ftp
  3. ; =============
  4. ; This example shows how you can fetch one file from
  5. ; a FTP site and post the same file autopmatically to
  6. ; another!
  7. ; PLEASE NOTE: This will not run for you unless you 
  8. ; change the script so that it connects to a site 
  9. ; where you have "write" permission.
  10. ; *****************************************************
  11.  
  12. ; ******* First provide the Login information...
  13.  
  14. ; DialEntry="xxxxxxx"
  15. ; DialLoginUser="xxxxxxx"
  16. ; DialLoginPassword="xxxxxxx"
  17. Host="ftp.transsoft.com"
  18. Port="21"
  19. User="anonymous"
  20. Password="you@your.net"
  21. ; Proxy=
  22. ; ProxyPort=21
  23.  
  24. ; ******* Timeout in seconds...
  25. Timeout=120
  26.  
  27. ; ******* ...Dial up if not already connected to the Internet...
  28. ; Dial
  29.  
  30. ; *******  ...and then connect to FTP host...
  31. connect
  32.  
  33. ; *******  Command sequence...
  34.  
  35. remote-cd  "/pub"
  36. if remote-exists("/pub/ftpupgr.exe") then
  37.    binary
  38.    get "ftpupgr.exe" ".\ftpupgr.exe"
  39. endif
  40.  
  41. ; *******  Afterwards, disconnect from host!
  42. disconnect
  43.  
  44. ; Start a new connection for destination:
  45.  
  46. Host=ftp.centrum.is
  47. Port=21
  48. User=anonymous
  49. Password=you@your.net
  50. ; Proxy=
  51. ; ProxyPort=21
  52.  
  53. Timeout=120
  54.  
  55. connect
  56.  
  57. remote-cd  "/pub/TransSoft"
  58. send ".\ftpupgr.exe" "ftpupgr.exe"
  59.  
  60. disconnect
  61.