home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / swag / support.bat < prev    next >
DOS Batch File  |  1993-11-28  |  4KB  |  111 lines

  1. @echo off
  2.  
  3. REM  COMPLIMENTS TO FRANK DIACHEYSN FOR MODIFYING THIS FILE TO WORK WITH
  4. REM  ZIP AND ARJ FORMATS
  5.  
  6. REM  SUPPORT.BAT
  7. REM  Packs archive files SWAGX-Y using current .SWG files,
  8. REM  Support sites DO NOT have to download the ENTIRE SWAG files package
  9. REM  with each release.  All that is necessary is to download SWAGYYMM.ZIP
  10. REM  OR ALLSWAGS.ZIP.  SWAGYYMM.ZIP can be used to update the current copy
  11. REM  of ALLSWAGS.ZIP that the support site has.  Once this is done, the
  12. REM  smaller support archives can be created with this batch file.
  13.  
  14. REM  This makes it easy for Support sites to download ONLY the SWAG update
  15. REM  or the ALLSWAGS.ZIP and create the five supporting archives.
  16. REM
  17. REM  There are TWO varibles needed with this batch file.
  18. REM  %1 is the directory location of your SWAG ZIP files.
  19. REM  %2 is the directory location of your *.SWG files.
  20. REM  %3 [ARJ] is optional and makes support.bat use ARJ instead of PkZip
  21. REM  therefore, call this for DOS : support [swagzips] [swagfiles] [ARJ]
  22.  
  23. IF "%1" == "" GOTO SYNTAX
  24. IF "%2" == "" GOTO SYNTAX
  25. IF "%3" == "ARJ" GOTO ARJ
  26. IF "%3" == "arj" GOTO ARJ
  27.  
  28. IF EXIST %1\file_id.diz COPY %1\file_id.diz %1\support.diz
  29. REM  Create SWAG.ZIP
  30. IF EXIST %1\swag.zip DEL %1\swag.zip
  31. COPY swag.diz file_id.diz
  32. PKZIP -ex %1\swag.zip %2\reader.exe %2\bbs.txt %2\swag.txt %2\reader.doc %2\file_id.diz
  33.  
  34. REM  Create SWAGA-C.ZIP
  35. IF EXIST %1\swaga-c.zip DEL %1\swaga-c.zip
  36. COPY swaga-c.diz file_id.diz
  37. PKZIP -ex %1\swaga-c.zip %2\a*.swg %2\b*.swg %2\c*.swg %2\file_id.diz
  38.  
  39. REM  Create SWAGD-F.ZIP
  40. IF EXIST %1\swagd-f.zip DEL %1\swagd-f.zip
  41. COPY swagd-f.diz file_id.diz
  42. PKZIP -ex %1\swagd-f.zip %2\d*.swg %2\e*.swg %2\f*.swg %2\file_id.diz
  43.  
  44. REM  Create SWAGG-M.ZIP
  45. IF EXIST %1\swagg-m.zip DEL %1\swagg-m.zip
  46. COPY swagg-m.diz file_id.diz
  47. PKZIP -ex %1\swagg-m.zip %2\g*.swg %2\h*.swg %2\i*.swg %2\file_id.diz -x%2\grepswag.*
  48. PKZIP -ex %1\swagg-m.zip %2\j.swg %2\k*.swg %2\l*.swg %2\m*.swg -x%2\grepswag.*
  49.  
  50. REM  Create SWAGN-R.ZIP
  51. IF EXIST %1\swagn-r.zip DEL %1\swagn-r.zip
  52. COPY swagn-r.diz file_id.diz
  53. PKZIP -ex %1\swagn-r.zip %2\n*.swg %2\o*.swg %2\p*.swg %2\q*.swg %2\r*.swg %2\file_id.diz
  54.  
  55. REM  Create SWAGS-Z.ZIP
  56. IF EXIST %1\swags-z.zip DEL %1\swags-z.zip
  57. COPY swags-z.diz file_id.diz
  58. PKZIP -ex %1\swags-z.zip %2\s*.swg %2\t*.swg %2\u*.swg %2\v*.swg %2\w*.swg
  59. PKZIP -ex %1\swags-z.zip %2\x*.swg %2\y*.swg %2\z*.swg %2\file_id.diz
  60.  
  61. GOTO END
  62.  
  63. :ARJ
  64.  
  65. IF EXIST %1\file_id.diz COPY %1\file_id.diz %1\support.diz
  66. REM  Create SWAG.ARJ
  67. IF EXIST %1\swag.arj DEL %1\swag.arj
  68. COPY swag.diz file_id.diz
  69. arj a %1\swag.arj %2\reader.exe %2\bbs.txt %2\swag.txt %2\reader.doc %2\file_id.diz
  70.  
  71. REM  Create SWAGA-C.arj
  72. IF EXIST %1\swaga-c.arj DEL %1\swaga-c.arj
  73. COPY swaga-c.diz file_id.diz
  74. arj a %1\swaga-c.arj %2\a*.swg %2\b*.swg %2\c*.swg %2\file_id.diz
  75.  
  76. REM  Create SWAGD-F.arj
  77. IF EXIST %1\swagd-f.arj DEL %1\swagd-f.arj
  78. COPY swagd-f.diz file_id.diz
  79. arj a %1\swagd-f.arj %2\d*.swg %2\e*.swg %2\f*.swg %2\file_id.diz
  80.  
  81. REM  Create SWAGG-M.arj
  82. IF EXIST %1\swagg-m.arj DEL %1\swagg-m.arj
  83. COPY swagg-m.diz file_id.diz
  84. arj a %1\swagg-m.arj %2\g*.swg %2\h*.swg %2\i*.swg %2\file_id.diz -x%2\grepswag.*
  85. arj a %1\swagg-m.arj %2\j.swg %2\k*.swg %2\l*.swg %2\m*.swg -x%2\grepswag.*
  86.  
  87. REM  Create SWAGN-R.arj
  88. IF EXIST %1\swagn-r.arj DEL %1\swagn-r.arj
  89. COPY swagn-r.diz file_id.diz
  90. arj a %1\swagn-r.arj %2\n*.swg %2\o*.swg %2\p*.swg %2\q*.swg %2\r*.swg %2\file_id.diz
  91.  
  92. REM  Create SWAGS-Z.arj
  93. IF EXIST %1\swags-z.arj DEL %1\swags-z.arj
  94. COPY swags-z.diz file_id.diz
  95. arj a %1\swags-z.arj %2\s*.swg %2\t*.swg %2\u*.swg %2\v*.swg %2\w*.swg
  96. arj a %1\swags-z.arj %2\x*.swg %2\y*.swg %2\z*.swg %2\file_id.diz
  97.  
  98. GOTO END
  99.  
  100. :SYNTAX
  101. ECHO SUPPORT.BAT Create SWAG Support ZIPS from *.SWG Files
  102. ECHO Third parameter "[ARJ]" is optional and creates ARJs instead of ZIPs
  103. ECHO SYNTAX: SUPPORT [swagZIPpath] [swagFILESpath] [ARJ]
  104.  
  105. ECHO   e.g. "SUPPORT \swag\zips \swag\files"
  106.  
  107. :END
  108.  
  109. IF EXIST %1\file_id.diz DEL %1\file_id.diz
  110. IF EXIST %1\support.diz REN %1\support.diz %1\file_id.diz
  111.