home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p035 / p2000_2.ddi / PADS / PADS.2 / 2000.BAT next >
Encoding:
DOS Batch File  |  1992-06-25  |  4.4 KB  |  209 lines

  1. echo off
  2.  
  3. if exist \pads2000.swp goto BADSWAP
  4. if exist \sr2000.swp goto BADSWAP
  5. if exist \logc2000.swp goto BADSWAP
  6.  
  7. front2 /X
  8.  
  9. if exist therm.1 ren therm.1 therm.0
  10.  
  11. :top1
  12.  
  13. if exist therm.1 goto THERM
  14.  
  15. front2
  16. goto SKIP
  17.  
  18. :THERM
  19. front2 THERM
  20.  
  21. :SKIP
  22.  
  23. if errorlevel 12 goto thermal2
  24. if errorlevel 11 goto thermal1
  25. if errorlevel 10 goto end
  26. if errorlevel 9 goto pwrite
  27. if errorlevel 8 goto pread
  28. if errorlevel 6 goto pedit
  29. if errorlevel 5 goto plib
  30. if errorlevel 4 goto cedit
  31. if errorlevel 3 goto superroute
  32. if errorlevel 2 goto pcb
  33. if errorlevel 1 goto logic
  34. goto end
  35.  
  36. :plib
  37. if exist therm.1 ren therm.1 therm.0 
  38. if not exist plib.exe goto bad
  39. plib
  40. goto top1
  41.  
  42. :pedit
  43. if exist therm.1 ren therm.1 therm.0 
  44. if not exist pedit.exe goto bad
  45. pedit /P /B pedit.tmp
  46. goto top1
  47.  
  48. :cedit
  49. if exist therm.1 ren therm.1 therm.0 
  50. if not exist pedit.exe goto bad
  51. pedit /C /B pedit.tmp
  52. goto top1
  53.  
  54.  
  55. :superroute
  56. if exist therm.1 ren therm.1 therm.0 
  57. if not exist sroute.bat goto bad
  58. cls
  59.  
  60. rem The following line must be deleted if you use a 286 computer. If you
  61. rem have a 386 computer you must replace the following line with the
  62. rem command to turn off expanded memory.
  63.  
  64. rem cemm off
  65.  
  66. call sroute.bat
  67.  
  68. rem The following line must be deleted if you use a 286 computer. If you
  69. rem have a 386 computer you must replace the following line with the
  70. rem command to turn back on expanded memory.
  71.  
  72. rem cemm on
  73. goto top1
  74.  
  75. :pread
  76. cls
  77. if exist therm.1 ren therm.1 therm.0 
  78. if not exist pread.exe goto bad
  79. pread
  80. goto top1
  81.  
  82. :pwrite
  83. cls
  84. if exist therm.1 ren therm.1 therm.0 
  85. if not exist pwrite.exe goto bad
  86. pwrite
  87. goto top1
  88.  
  89. :pcb
  90. if exist therm.1 ren therm.1 therm.0 
  91. if not exist p2000.exe goto bad
  92. cemm off
  93. cls
  94. call pads2000.bat /m
  95. cemm on
  96. goto top1
  97.  
  98. :thermal1
  99. if exist therm.0 ren therm.0 therm.1 
  100. if not exist itf.exe goto bad
  101. cd thermal
  102. itf
  103. goto top1
  104.  
  105.  
  106. :thermal2
  107. if exist therm.0 ren therm.0 therm.1 
  108. if not exist betasoft.exe goto bad
  109. cd thermal
  110. call thermal
  111. goto top1
  112.  
  113. :logic
  114. if exist therm.1 ren therm.1 therm.0 
  115. if exist logic32.exe goto log2k 
  116. if not exist logic16.exe goto bad
  117. front /L
  118. if exist logfil\startup.mac del logfil\startup.mac >nul
  119. if exist logfil\$$$tmp.sch del logfil\$$$tmp.sch >nul
  120. :top16
  121. if not exist logfil\startup.mac goto userp16
  122. logic16 /s /r:logfil\startup.mac
  123. if exist logfil\startup.mac del logfil\startup.mac >nul
  124. goto errchk16
  125. :userp16
  126. logic16 /m
  127. :errchk16
  128. if errorlevel 2 goto netlist16
  129. if errorlevel 1 goto eco16
  130. goto end0
  131.  
  132. :log2k
  133. front2 /L
  134. if exist logfil\startup.mac del logfil\startup.mac >nul
  135. if exist logfil\$$$tmp.sch del logfil\$$$tmp.sch >nul
  136. :top32
  137. if not exist logfil\startup.mac goto userp32
  138. logic32 /s /r:logfil\startup.mac
  139. if exist logfil\startup.mac del logfil\startup.mac >nul
  140. goto errchk32
  141. :userp32
  142. logic32 /m
  143. :errchk32
  144. if errorlevel 2 goto netlist32
  145. if errorlevel 1 goto eco32
  146. goto end0
  147.  
  148. :eco16
  149. cls
  150. ecogen @logfil\info.tmp
  151. Pause
  152. if exist logfil\tmp0.asc del logfil\tmp0.asc >nul
  153. if exist logfil\tmp1.asc del logfil\tmp1.asc >nul
  154. if exist logfil\info.tmp del logfil\info.tmp >nul
  155. copy eco.mac logfil\startup.mac >nul
  156. goto top16
  157.  
  158. :eco32
  159. cls
  160. ecogen @logfil\info.tmp
  161. Pause
  162. if exist logfil\tmp0.asc del logfil\tmp0.asc >nul
  163. if exist logfil\tmp1.asc del logfil\tmp1.asc >nul
  164. if exist logfil\info.tmp del logfil\info.tmp >nul
  165. copy eco.mac logfil\startup.mac >nul
  166. goto top32
  167.  
  168. :netlist16
  169. cls
  170. xlate logfil\info.tmp
  171. Pause
  172. if exist logfil\info.tmp del logfil\info.tmp
  173. if exist logfil\repout.net del logfil\repout.net
  174. copy netlst.mac logfil\startup.mac >nul
  175. goto top16
  176.  
  177. :netlist32
  178. cls
  179. xlate logfil\info.tmp
  180. Pause
  181. if exist logfil\info.tmp del logfil\info.tmp
  182. if exist logfil\repout.net del logfil\repout.net
  183. copy netlst.mac logfil\startup.mac >nul
  184. goto top32
  185.  
  186. :end0
  187. goto top1
  188.  
  189.  
  190. :bad
  191. echo Program not found!
  192. pause
  193. goto top1
  194.  
  195. :badswap
  196. if exist \pads2000.swp del \pads2000.swp
  197. if exist \sr2000.swp del \sr2000.swp
  198. if exist \logc2000.swp del \logc2000.swp
  199. echo *
  200. echo *****************************************************************************
  201. echo A previous crash of a 386 application has probably left some lost clusters on
  202. echo your hard drive. It is therefore suggested you run chkdsk /f or an equivalent
  203. echo utility which is compatible with your disk manager.
  204. echo *****************************************************************************
  205. echo *
  206. goto end
  207.  
  208. :end
  209.