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

  1. ; *****************************************************
  2. ; Example5.ftp
  3. ; =============
  4. ; This example uses Wildcards in filenames ('*' and '?') 
  5. ; It sends a few textfile to a remote server and then 
  6. ; retrieves them again to another local folder.
  7. ; This is just a sample - you are unable to execute
  8. ; the script unchanged... ;o)
  9. ; *****************************************************
  10.  
  11. ; ******* First provide the Login information...
  12.  
  13. ; DialEntry=""
  14. ; DialLoginUser=""
  15. ; DialLoginPassword=""
  16.  
  17. Host="ftp.yournet.net"
  18. Port=21
  19. User="anonymous"
  20. Password="you@your.net"
  21.  
  22. ; ******* Timeout in seconds...
  23. Timeout=60
  24.  
  25. ; *******  ...and then connect to FTP host...
  26. ; Dial
  27. connect
  28.  
  29. ; Force ASCII transfer:
  30. ascii
  31.  
  32. ; Force all letters in filenames to LOW caps
  33. ForceUpperOn
  34.  
  35. send "d:\TMail3\FTPClient\*.txt" "upload"
  36.  
  37. ; Stop forcing filenames to All LOW caps:
  38. ForceUpperOff
  39.  
  40. get "upload/*.*" "c:\temp"
  41.  
  42. ; *******  Afterwards, disconnect from host!
  43. disconnect
  44.  
  45. ; *******  At last, Hangup Internet connection!
  46. ; Hangup 
  47.  
  48.