home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p082 / 2.img / PADS / LOGIC.EXE / 2000.BAT next >
Encoding:
DOS Batch File  |  1992-04-14  |  4.3 KB  |  207 lines

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