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

  1. @echo off
  2.  
  3. front /X
  4.  
  5. if exist therm.1 ren therm.1 therm.0
  6.  
  7. :top1
  8.  
  9. if exist therm.1 goto THERM
  10.  
  11. front
  12. goto SKIP
  13.  
  14. :THERM
  15. front THERM
  16.  
  17. :SKIP
  18.  
  19. if errorlevel 12 goto thermal2
  20. if errorlevel 11 goto thermal1
  21. if errorlevel 10 goto end
  22. if errorlevel 9 goto pwrite
  23. if errorlevel 8 goto pread
  24. if errorlevel 6 goto pedit
  25. if errorlevel 5 goto plib
  26. if errorlevel 4 goto cedit
  27. if errorlevel 3 goto superroute
  28. if errorlevel 2 goto pcb
  29. if errorlevel 1 goto logic
  30. goto end
  31.  
  32. :plib
  33. if exist therm.1 ren therm.1 therm.0 
  34. if not exist plib.exe goto bad
  35. plib
  36. goto top1
  37.  
  38. :pedit
  39. if exist therm.1 ren therm.1 therm.0 
  40. if not exist pedit.exe goto bad
  41. pedit /P /B pedit.tmp
  42. goto top1
  43.  
  44. :cedit
  45. if exist therm.1 ren therm.1 therm.0 
  46. if not exist pedit.exe goto bad
  47. pedit /C /B pedit.tmp
  48. goto top1
  49.  
  50.  
  51. :superroute
  52. if exist therm.1 ren therm.1 therm.0 
  53. if not exist sroute.bat goto bad
  54. cls
  55.  
  56. rem The following command " qemm off " is used to turn off your expanded
  57. rem memory manager on a 80386 computer. If you are using a 80286 computer,
  58. rem you should delete this command.
  59.  
  60. qemm off
  61.  
  62. call sroute
  63.  
  64. rem The following command " qemm on " is used to turn on your expanded
  65. rem memory manager on a 80386 computer. If you are using a 80286 computer,
  66. rem you should delete this command.
  67.  
  68. qemm on
  69. goto top1
  70.  
  71. :pread
  72. cls
  73. if exist therm.1 ren therm.1 therm.0 
  74. if not exist pread.exe goto bad
  75. pread
  76. goto top1
  77.  
  78. :pwrite
  79. cls
  80. if exist therm.1 ren therm.1 therm.0 
  81. if not exist pwrite.exe goto bad
  82. pwrite
  83. goto top1
  84.  
  85. :pcb
  86. if exist therm.1 ren therm.1 therm.0 
  87. if not exist pcb.exe goto bad
  88. pcb /m
  89. goto top1
  90.  
  91. :thermal1
  92. if exist therm.0 ren therm.0 therm.1 
  93. if not exist itf.exe goto bad
  94. cd thermal
  95. itf
  96. goto top1
  97.  
  98.  
  99. :thermal2
  100. if exist therm.0 ren therm.0 therm.1 
  101. if not exist thermal.exe goto bad
  102. cd thermal
  103. call thermal
  104. goto top1
  105.  
  106. :logic
  107. if exist therm.1 ren therm.1 therm.0 
  108. if exist logic32.exe goto log2k 
  109. if not exist logic16.exe goto bad
  110. front /L
  111. if exist logfil\startup.mac del logfil\startup.mac >nul
  112. if exist logfil\$$$tmp.sch del logfil\$$$tmp.sch >nul
  113. :top16
  114. if not exist logfil\startup.mac goto userp16
  115. logic16 /s /r:logfil\startup.mac
  116. if exist logfil\startup.mac del logfil\startup.mac >nul
  117. goto errchk16
  118. :userp16
  119. logic16 /m
  120. :errchk16
  121. if errorlevel 2 goto netlist16
  122. if errorlevel 1 goto eco16
  123. goto end0
  124.  
  125. :log2k
  126. front2 /L
  127. if exist logfil\startup.mac del logfil\startup.mac >nul
  128. if exist logfil\$$$tmp.sch del logfil\$$$tmp.sch >nul
  129. :top32
  130. if not exist logfil\startup.mac goto userp32
  131. logic32 /s /r:logfil\startup.mac
  132. if exist logfil\startup.mac del logfil\startup.mac >nul
  133. goto errchk32
  134. :userp32
  135. logic32 /m
  136. :errchk32
  137. if errorlevel 2 goto netlist32
  138. if errorlevel 1 goto eco32
  139. goto end0
  140.  
  141.  
  142. :eco16
  143. cls
  144. ecogen @logfil\info.tmp
  145. Pause
  146. if exist logfil\tmp0.asc del logfil\tmp0.asc >nul
  147. if exist logfil\tmp1.asc del logfil\tmp1.asc >nul
  148. if exist logfil\info.tmp del logfil\info.tmp >nul
  149. copy eco.mac logfil\startup.mac >nul
  150. goto top16
  151.  
  152. :eco32
  153. cls
  154. ecogen @logfil\info.tmp
  155. Pause
  156. if exist logfil\tmp0.asc del logfil\tmp0.asc >nul
  157. if exist logfil\tmp1.asc del logfil\tmp1.asc >nul
  158. if exist logfil\info.tmp del logfil\info.tmp >nul
  159. copy eco.mac logfil\startup.mac >nul
  160. goto top32
  161.  
  162. :netlist16
  163. cls
  164. xlate logfil\info.tmp
  165. Pause
  166. if exist logfil\info.tmp del logfil\info.tmp
  167. if exist logfil\repout.net del logfil\repout.net
  168. copy netlst.mac logfil\startup.mac >nul
  169. goto top16
  170.  
  171. :netlist32
  172. cls
  173. xlate logfil\info.tmp
  174. Pause
  175. if exist logfil\info.tmp del logfil\info.tmp
  176. if exist logfil\repout.net del logfil\repout.net
  177. copy netlst.mac logfil\startup.mac >nul
  178. goto top32
  179.  
  180. :end0
  181. goto top1
  182.  
  183.  
  184. :bad
  185. echo Program not found!
  186. pause
  187. goto top1
  188.  
  189. :end
  190.