home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / waffle / allfil62.zip / UPDATE.BAT < prev    next >
DOS Batch File  |  1993-02-09  |  1KB  |  44 lines

  1. @echo off
  2. rem
  3. rem Front end for allfiles -- Waffle 1.65 files lister
  4. rem by Otto J. Makela (BBS V.32bis/HST +358 41 211 562)
  5. rem
  6. rem Distributed under the GNU General Public Licence:
  7. rem see file COPYING for details
  8. rem
  9.  
  10. rem Edit these to suit your local configuration
  11.  
  12. rem The allfiles configuration file
  13. set config=c:\waffle\allfiles\allfiles.cnf
  14. rem The listings produced by allfiles you want to zip up
  15. set files=allfiles pcfiles macfiles grafiles
  16. rem Where the listings and zips will be located
  17. set download=c:\download
  18. rem A comment for the zipped files
  19. set comment=c:\usr\local\comment.txt
  20.  
  21. rem This is the temporary file location for PKWare zip
  22. if "%pktmp%"=="" set pktmp=d:\
  23.  
  24. rem End of configuration section
  25.  
  26. rem Call allfiles
  27. break on
  28. c:\waffle\allfiles\allfiles %config% %1 %2 %3 %4 %5 %6 %7 %8 %9
  29. rem Don't zip in case of errors
  30. if errorlevel 1 goto exit
  31. rem First delete the old zips
  32. for %%a in (%files%) do del %download%\%%a.zip
  33. if errorlevel 1 goto exit
  34. rem And then do the actual zipping
  35. rem (add ! to the options if you have registered your pkzip to get AV)
  36. for %%a in (%files%) do pkzip -azex %download%\%%a %download%\%%a.doc < %comment%
  37.  
  38. :exit
  39. set config=
  40. set files=
  41. set download=
  42. set comment=
  43. break on
  44.