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

  1. ; *****************************************************
  2. ; Example6.ftp
  3. ; =============
  4. ; This example sends all .DAT files from the folder called
  5. ;       d:\Datafiles\MyData 
  6. ; and ALL SUB-folders -
  7. ; to a specified directory on a remote FTP server.
  8. ; NOTE: This is just a sample - you are unable to 
  9. ; execute the script unchanged... ;o)
  10. ; *****************************************************
  11.  
  12. ; ******* First provide the Login information...
  13.  
  14. Host="ftp.yourhost.net"
  15. Port=21
  16. User="your-username"
  17. Password="your-password"
  18.  
  19. ; ******* Timeout in seconds...
  20. Timeout=60
  21.  
  22. ; *******  ...and then connect to FTP host...
  23. connect
  24.  
  25. ; *******  Command sequence...
  26. Binary
  27. SendTree "d:\Datafiles\MyData\*.dat" "/data/files"
  28.  
  29. ; *******  Afterwards, disconnect from host!
  30. disconnect
  31.  
  32.