home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BUSINESS / VNDNFO10.ZIP / TESTDIST.BAT < prev    next >
DOS Batch File  |  1994-01-05  |  9KB  |  179 lines

  1. rem echo off
  2. goto start
  3. :usage
  4. echo .=================================================================
  5. echo .===== testdist.bat -- perform distribution policy tests on  =====
  6. echo .=====                 a VENDINFO file, writing LOGS to      =====
  7. echo .=====                 specified file                        =====
  8. echo .=====                                                       =====
  9. echo .===== usage:                                                =====
  10. echo .=====        testdist diz_file out_file                     =====
  11. echo .===== where:                                                =====
  12. echo .=====        diz_file = pathname of VENDINFO file           =====
  13. echo .=====                                                       =====
  14. echo .=====        out_file = pathname of output file to which    =====
  15. echo .=====                   log files information should be     =====
  16. echo .=====                   written                             =====
  17. echo .=====                                                       =====
  18. echo .===== example:                                              =====
  19. echo .=====        testdist vendinfo.diz sample.prn               =====
  20. echo .=====                                                       =====
  21. echo .=== Copyright 1993 Rams' Island Software All Rights Reserved ====
  22. echo .== 1993 Rams' Island Software, 7644 Lakecliff, Parker CO 80134 ==
  23. echo .=================================================================
  24. goto exit
  25.  
  26. :start
  27. rem ----- desired VendPrcs test goes here ---------------------------
  28. if %1.==. goto usage
  29. if %2.==. goto usage
  30. del %2
  31.  
  32. rem ----- test for valid, authenticated file ------------------------
  33. vendprcs %1 -zk                      -y " "                      > %2
  34. if errorlevel 12 goto allOK
  35.  
  36. :test11
  37. if not errorlevel 11 goto test10
  38. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  39. echo │ Test of validity and authentication of VENDINFO.DIZ file │ >> %2
  40. echo └──────────────────────────────────────────────────────────┘ >> %2
  41. echo       This VENDINFO.DIZ file has a missing or invalid      >> %2
  42. echo       author authentication code.  If you are the author   >> %2
  43. echo       and you are testing your VENDINFO.DIZ file, this     >> %2
  44. echo       simply means that you have not yet registered        >> %2
  45. echo       VendEdit and entered the registration numbers so     >> %2
  46. echo       that VendEdit can produce an authenticated record.   >> %2
  47. echo       (It's also possible that you have a special-purpose  >> %2
  48. echo       VendEdit registration, and are attempting to produce >> %2
  49. echo       VENDINFO records for products outside the allowed    >> %2
  50. echo       types.  Try Verify Warnings for more information.)   >> %2
  51. vendprcs    -y " "      >> %2
  52. echo       If you are an author testing your VENDINFO.DIZ file  >> %2
  53. echo       and you have already entered your registration keys, >> %2
  54. echo       make sure that the company name used in this         >> %2
  55. echo       VENDINFO file exactly matches the name in which you  >> %2
  56. echo       registered.  Registration keys are tied to your      >> %2
  57. echo       company name.  In VendEdit, try Edit Author Company  >> %2
  58. echo       and press F3.                                        >> %2
  59. vendprcs    -y " "      >> %2
  60. echo       If you have found this VENDINFO.DIZ file in a        >> %2
  61. echo       distributed package, however, then that package may  >> %2
  62. echo       be hacked or corrupted, and is, in any case, in      >> %2
  63. echo       violation of the VendEdit license.                   >> %2
  64. goto continue
  65.  
  66. :test10
  67. if not errorlevel 10 goto allOK
  68. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  69. echo │ Test of validity and authentication of VENDINFO.DIZ file │ >> %2
  70. echo └──────────────────────────────────────────────────────────┘ >> %2
  71. echo       This VENDINFO.DIZ file has an incorrect size or CRC  >> %2
  72. echo       for either the text or the data section, and may be  >> %2
  73. echo       a hacked or corrupted file.                          >> %2
  74. goto exit
  75.  
  76. :allOK
  77. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  78. echo │ Test of validity and authentication of VENDINFO.DIZ file │ >> %2
  79. echo └──────────────────────────────────────────────────────────┘ >> %2
  80. echo       This VENDINFO.DIZ file has passed all validity and   >> %2
  81. echo       security tests, including size and CRC tests and     >> %2
  82. echo       basic author source authentication.                  >> %2
  83.  
  84. :continue
  85. vendprcs    -y " "      >> %2
  86. echo       Authentication verification will be turned off for   >> %2
  87. echo       the remaining tests, so you can see the results as   >> %2
  88. echo       a distributor would see them after you've registered >> %2
  89. echo       and entered the registration keys for your company.  >> %2
  90. del VENDDATA
  91.  
  92. vendprcs    -y " "      >> %2
  93. vendprcs    -y " "      >> %2
  94. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  95. echo │ Simple test for BBS distribution, no special conditions  │ >> %2
  96. echo └──────────────────────────────────────────────────────────┘ >> %2
  97. vendprcs %1 -db     -na >> %2
  98. vendprcs    -y " "      >> %2
  99. vendprcs    -y " "      >> %2
  100. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  101. echo │ BBS distribution, no charge to customers                 │ >> %2
  102. echo └──────────────────────────────────────────────────────────┘ >> %2
  103. vendprcs %1 -db -c0 -na >> %2
  104. vendprcs    -y " "      >> %2
  105. vendprcs    -y " "      >> %2
  106. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  107. echo │ BBS distribution, $50/yr., recompress, add ad,           │ >> %2
  108. echo │ mail disks to some users                                 │ >> %2
  109. echo └──────────────────────────────────────────────────────────┘ >> %2
  110. vendprcs %1 -db -cy5000 -omac -na >> %2
  111. vendprcs    -y " "      >> %2
  112. vendprcs    -y " "      >> %2
  113. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  114. echo │ FDN distribution                                         │ >> %2
  115. echo └──────────────────────────────────────────────────────────┘ >> %2
  116. vendprcs %1 -df     -na >> %2
  117. vendprcs    -y " "      >> %2
  118. vendprcs    -y " "      >> %2
  119. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  120. echo │ Mail-order disk vendor, no special conditions            │ >> %2
  121. echo └──────────────────────────────────────────────────────────┘ >> %2
  122. vendprcs %1 -dd     -na >> %2
  123. vendprcs    -y " "      >> %2
  124. vendprcs    -y " "      >> %2
  125. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  126. echo │ Mail-order disk vendor, $5/360K                          │ >> %2
  127. echo └──────────────────────────────────────────────────────────┘ >> %2
  128. vendprcs %1 -dd -ck500 -cp0 -cy0 -na >> %2
  129. vendprcs    -y " "      >> %2
  130. vendprcs    -y " "      >> %2
  131. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  132. echo │ Disk vendor, $5/360K, ASP/informs/non-prof user group    │ >> %2
  133. echo └──────────────────────────────────────────────────────────┘ >> %2
  134. vendprcs %1 -dd -ck500 -cp0 -cy0 -tan -oipods -na >> %2
  135. vendprcs    -y " "      >> %2
  136. vendprcs    -y " "      >> %2
  137. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  138. echo │ Disk vendor, $50/360K, ASP/informs/non-prof user group   │ >> %2
  139. echo └──────────────────────────────────────────────────────────┘ >> %2
  140. vendprcs %1 -dd -ck5000 -cp0 -cy0 -tan -oipods -na >> %2
  141. vendprcs    -y " "      >> %2
  142. vendprcs    -y " "      >> %2
  143. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  144. echo │ CD-ROM, targetted end users only, $50, ASP distributor   │ >> %2
  145. echo └──────────────────────────────────────────────────────────┘ >> %2
  146. vendprcs %1 -dc -mcbd -cc5000 -ta -oipods -na >> %2
  147. vendprcs    -y " "      >> %2
  148. vendprcs    -y " "      >> %2
  149. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  150. echo │ CD-ROM, targetted BBSes and distributors, $50, informs   │ >> %2
  151. echo └──────────────────────────────────────────────────────────┘ >> %2
  152. vendprcs %1 -dc -mcu -cc5000 -oipods -na >> %2
  153. vendprcs    -y " "      >> %2
  154. vendprcs    -y " "      >> %2
  155. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  156. echo │ Rack distributor, $9.99/program                          │ >> %2
  157. echo └──────────────────────────────────────────────────────────┘ >> %2
  158. vendprcs %1 -dr -ck0 -cp999 -na >> %2
  159. vendprcs    -y " "      >> %2
  160. vendprcs    -y " "      >> %2
  161. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  162. echo │ Installation on user's machine by consultant             │ >> %2
  163. echo └──────────────────────────────────────────────────────────┘ >> %2
  164. vendprcs %1 -di -tc -na >> %2
  165. vendprcs    -y " "      >> %2
  166. vendprcs    -y " "      >> %2
  167. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  168. echo │ Distribution by undefined method                         │ >> %2
  169. echo └──────────────────────────────────────────────────────────┘ >> %2
  170. vendprcs %1 -du     -na >> %2
  171. vendprcs    -y " "      >> %2
  172. vendprcs    -y " "      >> %2
  173. echo ┌──────────────────────────────────────────────────────────┐ >> %2
  174. echo │ Feel free to add your own tests to this TESTDIST.BAT     │ >> %2
  175. echo └──────────────────────────────────────────────────────────┘ >> %2
  176.  
  177. :exit
  178. 
  179.