home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / JMOD1004.ZIP / MODS.ZIP / FIDONEWS.MOD < prev    next >
Text File  |  1995-04-07  |  2KB  |  66 lines

  1.  
  2. From    :  Ray Elquist
  3. To      :  John Rohner
  4. Subject :  Here's a handy one??
  5.  
  6. John.. I was offering to my callers a menu option to view the FidoNews file
  7. that gets sent up with the fido mail every couple of weeks or so.. well with
  8. my lazy self I would forget to add those new files so that the updated file
  9. was allways the one the user could read.  Anyway to make things nice I added
  10. a little .bat file and now call it as a timed event every night to check for
  11. a new fidonews file..  Don't know if you want to include this on the board
  12. for other sysops or not but I will give it to you anyway just in case you
  13. think it might be handy for someone else?
  14.  
  15. First I have 2 new commands in the McEditor.
  16.  
  17.         FNWS = dTXT _C:\BBS\MYTEXT\MMFIDO.NWS
  18.  
  19.                 This is added to the main menu and displays the file that
  20. contains the fido news.
  21.  
  22.         FCPY = Door _C:\BBS\FIDONEWS.BAT
  23.  
  24.                 This calls the batch file from an event I run everynight
  25. somtime after my fido poll.
  26.  
  27. The .bat file is attached here and can be changed to meet the other drives
  28. and directory layouts of other sysops but it checks for a new fidonet news
  29. file in the MISCMAIL directory if it finds in it copies it to the MMFIDO.NWS
  30. file and deletes the old one so it also keeps fido systems MISCMAIL
  31. directories clean.. ;-)  I think next I am going to make a .bat that will do
  32. the same with the node.diff files.
  33.  
  34. -Ray
  35.  
  36. |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  37. echo off
  38. cls
  39. echo UPDATING FIDO NEWS!
  40.  
  41. REM  *** This batch file will check for a new fido news file in my
  42. REM  *** MISCMAIL directory.. if one is found it will copy it and 
  43. REM  *** un-archive it, rename it and stick it in the right directory
  44. REM  *** so callers can use the READ FIDO NEWS to see the new fido news.
  45. REM *********************************************************************
  46.  
  47. if not exist c:\bbs\miscmail\fnews*.lzh goto END
  48. c:
  49. cd\bbs\mytext
  50. copy c:\bbs\miscmail\fnews*.lzh *.*
  51. del c:\bbs\miscmail\fnews*.lzh
  52. lha e fnews*
  53.  
  54. if exist fido*.nws goto FINISH
  55. goto CLEANUP
  56.  
  57. :FINISH
  58. copy fido*.nws mmfido.nws
  59.  
  60. :CLEANUP
  61. del fido*.nws
  62. del fnews*.lzh
  63. cd\bbs
  64. :END
  65.  
  66.