home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / DAYNBR.ZIP / UPDATE.BAT < prev   
DOS Batch File  |  1985-10-27  |  1KB  |  48 lines

  1. rem - Note: The arguments to this file are calculated in SAMPLE.BAT
  2. rem - They are:   %1 = Ann for this Friday
  3. rem -             %2 = nnn for this Friday and
  4. rem -             %3 = ?nn for last Friday
  5. rem
  6. rem - You should only need to edit the paths in the next three commands to
  7. rem - make this batch file work in your system.
  8. rem
  9. rem - First move the new node list from the mail files area to the BBS root.
  10. rem
  11. cd \bbs\mail\files
  12. mv nodelist.%1 \bbs
  13. cd \bbs
  14. rem
  15. rem - Now make sure we actually got a new node list. We don't want to
  16. rem - process what we don't have.
  17. rem
  18. if not exist nodelist.%1 goto error
  19. rem
  20. rem - OK, it's there. Delete the unpacked node list if it exists. This is to
  21. rem - prevent ARC from interrogating the console for overwrite permission.
  22. rem
  23. del nodelist.%2
  24. rem
  25. rem - Unpack the new node list
  26. rem
  27. arc e nodelist.%1 nodelist.%2
  28. rem
  29. rem - Just in case ARC had a problem. . .
  30. rem
  31. if errorlevel 1 goto exit
  32. rem
  33. rem - Generate new lists
  34. rem
  35. listgen nodelist
  36. rem
  37. rem - Use ROBOT to generate redistribution messages.
  38. rem
  39. robot distribute nodelist.%1
  40. rem
  41. rem - Finally, delete last week's node list files.
  42. rem
  43. del nodelist.%3
  44. goto done
  45. :error
  46. echo Node list archive NODELIST.%1 not found
  47. :done
  48.