home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / networking / misc / gadmget1.6.lha / GadMget1.6 / AutoFTP.script < prev    next >
Encoding:
Text File  |  1994-10-30  |  869 b   |  24 lines

  1. stack 50000        ;ncftp can abort if it doesn't have plenty of stack!
  2.  
  3. ;Make sure EasyReq is somewhere in your path (c: is a good place!)
  4. c:easyreq >env:GadAnswer "Do you want to download a new RECENT listing?" "GadMGet Script" "Yes|No|Cancel"
  5.  
  6. if $GadAnswer eq 0
  7.     quit
  8. endif
  9.  
  10. if $GadAnswer eq 1
  11.   cd txt:            ;Change this to wherever you wish to keep RECENT
  12.   amitcp:bin/ncftp -r wcarchive.cdrom.com:/pub/aminet/RECENT    ;Change this to your favorite FTP site
  13. endif
  14.  
  15. ;You may need to specify the path to GadMGet here if it's not in your default path!
  16. gadmget txt:recent OUTPUT t:getfiles NOSIMPLEPATHS KEEPGETSORT GETSORT Size
  17.  
  18. if not `list t:getfiles lformat="%L"` eq "empty"
  19.     cd downloads:        ;Change this to wherever you want to receive your new files
  20.     amitcp:bin/ncftp -r wcarchive.cdrom.com:/pub/aminet/ <t:getfiles    ;Change this site as well
  21. endif
  22.  
  23. delete >nil: t:getfiles
  24.