home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMPRESS / EXZIP202.ZIP / CSBUILD.BAT next >
Encoding:
DOS Batch File  |  1991-02-27  |  3.9 KB  |  118 lines

  1. @echo off
  2. cls
  3.  
  4. Echo    
  5. CLS
  6. Echo   
  7. Echo   
  8. Echo       ┌─────────────────────────────────────────────────────────────┐
  9. Echo       │         Quick Start for building your FWK database          │
  10. Echo       ├─────────────────────────────────────────────────────────────┤
  11. Echo       │      There probably are many better ways to do this for     │
  12. Echo       │      which you'll have to read the FWKCS documentation!     │
  13. Echo       └─────────────────────────────────────────────────────────────┘
  14. Echo   
  15. Echo  This BAT file will help you get started in building your
  16. Echo  "FWK" contents signature database.  It is not intended as
  17. Echo  the best way or the most efficient way but it should work.
  18. Echo  In order to use this you MUST have performed some auxiliary
  19. Echo  functions already.  Read on..  if you are missing steps make
  20. Echo  sure you abort!
  21. Echo  
  22. Echo  1. You should have FWKCS.COM version 1.06, 1.07 or 1.08
  23. Echo     I will not support other versions with ExZip's v2.0 release!
  24. Echo  
  25. Echo  2. You should have created a directory to house the
  26. Echo     databases.  I will call it "P:\CS" for now.
  27. Echo  
  28. Echo  
  29. Pause
  30. cls
  31. Echo  3. You should have initialized FWKCS to point to your four
  32. Echo     database files through the "/d#" option already. I will,
  33. Echo     for now, call these files "CSLIST.SRT", "CSLIST.NDX",
  34. Echo     "CSLIST1.SRT" and "CSLIST1.NDX".  They will all reside in
  35. Echo     the directory mentioned above.
  36. Echo     If you have not initialized FWKCS yet, terminate this BAT
  37. Echo     and do the following:
  38. ECHO  
  39. Echo         Make sure you have only one copy of FWKCS.COM and that
  40. Echo         it is in a DOS search path;
  41. Echo  
  42. Echo         Replacing my example names and path with your actual
  43. Echo         ones execute the following 4 commands:
  44. Echo            FWKCS P:\cs\cslist.ndx /d1
  45. Echo            FWKCS P:\cs\cslist.srt /d2
  46. Echo            FWKCS P:\cs\cslist1.ndx /d3
  47. Echo            FWKCS P:\cs\cslist1.srt /d4
  48. Echo  
  49. Echo         Make sure you have QSORT in a DOS search path;
  50. Echo         Make sure you have DOS's FIND in a DOS search path;
  51. Echo  
  52. Echo         Restart this batch!
  53. Echo  
  54. Pause
  55. cls
  56. Echo     To run this batch file you will need to pass some info to
  57. Echo     it via the command line.  You MUST also be in the "P:\CS"
  58. Echo     directory!  I need to know which drives contain your .ZIP
  59. Echo     files.  These must be consecutive drive letters, such as
  60. Echo     H: through P:.  If not, you'll have to modify this batch!
  61. Echo  
  62. Echo     This batch will leave the files CSLIST.SRT and CSLIST.NDX
  63. Echo     in your "P:\CS" directory when done. YOU will have to
  64. Echo     rename them to the names you selected during the FWKCS
  65. Echo     install (remember the /d# commands?)
  66. Echo  
  67. Echo     If you want to install the BBS ads signatures follow the
  68. Echo     instructions in the NOADS10.ZIP file.
  69. Echo  
  70. Echo  
  71. Echo     If you are NOT now ready to start building the database press
  72. Echo     CTRL-BREAK to abort, otherwise...
  73. Echo  
  74. Pause
  75. Echo  
  76.  
  77.  
  78. If %1. == . goto NG
  79. If %2. == . goto NG
  80. goto Startit
  81.  
  82. :NG
  83. Echo       
  84. Echo  
  85. Echo  
  86. Echo      ┌───────────────────────────────────────────────────────────────┐
  87. Echo      │  You MUST specify drives to scan (from to) on the command     │
  88. Echo      │  line.  Execute as "CSBUILD C F" to create a database of all  │
  89. Echo      │  .ZIP files which can be found and drives C through F!        │
  90. Echo      └───────────────────────────────────────────────────────────────┘
  91. Echo  
  92. Echo  
  93. goto end
  94.  
  95.  
  96. :StartIt
  97. Echo  
  98. echo Scanning for files on drives %1 thru %2
  99. FwkDG %1 %2 /L >Files1
  100.  
  101. Echo Removing non-ZIP files
  102. Find ".ZIP" Files1 >Files2
  103. Del Files1
  104.  
  105. Echo Ready to create database...
  106. Fwkcs /1cf Files2 >Files3
  107. Del Files2
  108.  
  109. Echo Sorting database.. creating CSLIST.SRT
  110. QSort Files3 CSList.Srt
  111. Del Files3
  112.  
  113. Echo Creating index file..
  114. FwkCs CSList.Ndx CSList.Srt /i
  115.  
  116. :End
  117.  
  118.