home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / readnews / Scripts / FTPMail < prev    next >
Encoding:
Text File  |  1993-09-05  |  670 b   |  45 lines

  1. #Script FTP to Email request
  2. #width 7
  3. #Menu File list:None\no,Request\yes
  4. #width 50,80
  5. #ArgMenu FTP Site:wuarchive.wustl.edu,info2.rus.uni-stuttgart.de,acorn.acorn.co.uk,nic.funet.fi
  6. #Arg Directory:/pub/aminet/mods/pro
  7. #Arg Files:
  8. #Arg
  9. #Arg
  10. #Arg
  11. #Arg
  12. #Arg
  13. #Arg
  14. #Arg
  15. #Arg
  16. #Arg
  17. #if "%1%"=""
  18. #error You must specify an FTP site to connect to!
  19. #endif
  20. #if "%2%"=""
  21. #error You must specify a directory to read from!
  22. #endif
  23. #Output inject
  24. To: ftpmail@decwrl.dec.com
  25. Subject: File Request
  26.  
  27. #if "%replyto%"<>""
  28. reply %replyto%
  29. #endif
  30. connect %1%
  31. chdir %2%
  32. #if "%0%"="yes"
  33. dir
  34. #endif
  35. #if "%3%"<>""
  36. binary
  37. btoa
  38. chunksize 100000
  39. #repeat
  40. get %3%
  41. #shift 3
  42. #until "%3%"=""
  43. #endif
  44. quit
  45.