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

  1. ; *****************************************************
  2. ; Example9.ftp
  3. ; =============
  4. ; This example WAITS until a special local file exists
  5. ; and when it does, it is sent to a remote FTP server.
  6. ; -----------------------------------------------------
  7. ; NOTE: This is just a sample - you are unable to 
  8. ; execute the script unchanged... ;o)
  9. ; *****************************************************
  10.  
  11. ; ******* First provide the Login information...
  12.  
  13. Host="ftp.yourhost.net"
  14. Port=21
  15. User="your-username"
  16. Password="your-password"
  17.  
  18. ; ******* Timeout in seconds...
  19. Timeout=60
  20.  
  21.  
  22. ; ###  Wait for the file to exist...
  23. Waitforfile "D:\MyData\Files\Myfile.dat"
  24. ; ###  Wait 10 second before sending it...
  25. Waitseconds "10"
  26.  
  27. ; *******  ...and then connect to FTP host...
  28. connect
  29.  
  30. ; *******  Command sequence...
  31. Binary
  32. Send "D:\MyData\Files\Myfile.dat" "/mydata/files/myfile.dat"
  33.  
  34. ; *******  Afterwards, disconnect from host!
  35. disconnect
  36.  
  37.