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

  1. ; *****************************************************
  2. ; Example7.ftp
  3. ; =============
  4. ; This example RETRIEVES all .DAT files from a remote
  5. ; server's directory like:
  6. ;       /mydata/files/*.* 
  7. ; and ALL SUB-directories -
  8. ; and saves them in this local folder, building the same
  9. ; folderstructure locally as the one being retrieved:
  10. ;     d:\MyData\Files
  11. ; NOTE: This is just a sample - you are unable to 
  12. ; execute the script unchanged... ;o)
  13. ; *****************************************************
  14.  
  15. ; ******* First provide the Login information...
  16.  
  17. Host="ftp.yourhost.net"
  18. Port=21
  19. User="your-username"
  20. Password="your-password"
  21.  
  22. ; ******* Timeout in seconds...
  23. Timeout=60
  24.  
  25. ; *******  ...and then connect to FTP host...
  26. connect
  27.  
  28. ; *******  Command sequence...
  29. Binary
  30. GetTree "/mydata/files/*.dat" "D:\MyData\Files"
  31.  
  32. ; *******  Afterwards, disconnect from host!
  33. disconnect
  34.  
  35.