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

  1. ; *****************************************************
  2. ; Example11.ftp
  3. ; =============
  4. ; This example shows how to check if a file transfer 
  5. ; succeeded or not by checking the "SUCCESS" flag!
  6. ; -----------------------------------------------------
  7. ; This example also shows the use of this command:
  8. ;    Message "text..."
  9. ; -----------------------------------------------------
  10. ; NOTE: This is just a sample - you are unable to 
  11. ; execute the script unchanged... ;o)
  12. ; *****************************************************
  13.  
  14. ; ******* First provide the Login information...
  15.  
  16. ; DialEntry="xxxxxxx"
  17. ; DialLoginUser="xxxxxxx"
  18. ; DialLoginPassword="xxxxxxx"
  19. Host=ftp.yourhost.net
  20. Port=21
  21. User=your.username
  22. Password=your.password
  23. ; Proxy=
  24. ; ProxyPort=21
  25.  
  26. ; ******* Timeout in seconds...
  27. Timeout=120
  28.  
  29. ; ******* ...Dial up if not already connected to the Internet...
  30. ; Dial
  31.  
  32. ; *******  ...and then connect to FTP host...
  33. connect
  34.  
  35. ; *******  Command sequence...
  36.  
  37. remote-cd  "/myfiles"
  38. binary
  39. send "c:\autoexec.bat" "autoexec.bat"
  40. ; Success is a flag that indicates good or bad transfers
  41. if Success then
  42.    Message "Send completed successfully" 
  43. endif
  44.  
  45. ; *******  Afterwards, disconnect from host!
  46. disconnect
  47.  
  48. ; *******  At last, Hangup Internet connection!
  49. ; Hangup
  50.