home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p035 / p2000_4.ddi / PADS / LOGIC.EXE / PADS.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-03-09  |  2.9 KB  |  163 lines

  1. echo off
  2.  
  3. if exist \pads\therm.1 ren therm.1 therm.0
  4.  
  5. :top1
  6.  
  7. if exist therm.1 goto THERM
  8.  
  9. front
  10. goto SKIP
  11.  
  12. :THERM
  13. front THERM
  14.  
  15. :SKIP
  16.  
  17. if errorlevel 13 goto thermal2
  18. if errorlevel 12 goto thermal1
  19. if errorlevel 11 goto end
  20. if errorlevel 10 goto pwrite
  21. if errorlevel 9 goto pread
  22. if errorlevel 8 goto push
  23. if errorlevel 6 goto pedit
  24. if errorlevel 5 goto plib
  25. if errorlevel 4 goto cedit
  26. if errorlevel 3 goto superroute
  27. if errorlevel 2 goto pcb
  28. if errorlevel 1 goto logic
  29. goto end
  30.  
  31. :push
  32. if not exist \pads\pshnshv.bat goto bad
  33. cemm off
  34. call pshnshv.bat
  35. cemm on
  36. goto top1
  37.  
  38. :plib
  39. if exist therm.1 ren therm.1 therm.0 
  40. if not exist \pads\plib.exe goto bad
  41. plib
  42. goto top1
  43.  
  44. :pedit
  45. if exist therm.1 ren therm.1 therm.0 
  46. if not exist \pads\pedit.exe goto bad
  47. pedit /P /B pedit.tmp
  48. goto top1
  49.  
  50. :cedit
  51. if exist therm.1 ren therm.1 therm.0 
  52. if not exist \pads\pedit.exe goto bad
  53. pedit /C /B pedit.tmp
  54. goto top1
  55.  
  56.  
  57. :superroute
  58. if exist therm.1 ren therm.1 therm.0 
  59. if not exist \pads\sroute.exe goto bad
  60. cd \pads
  61. cls
  62. rem The following line must be deleted if you use a 286 computer. If you
  63. rem have a 386 computer you must replace the following line with the
  64. rem command to turn off expanded memory.
  65.  
  66. cemm off
  67.  
  68. sroute
  69.  
  70. rem The following line must be deleted if you use a 286 computer. If you
  71. rem have a 386 computer you must replace the following line with the
  72. rem command to turn back on expanded memory.
  73.  
  74. cemm on
  75. goto top1
  76.  
  77. :pread
  78. cls
  79. if exist therm.1 ren therm.1 therm.0 
  80. if not exist \pads\pread.exe goto bad
  81. cd \pads\files
  82. pread
  83. goto top1
  84.  
  85. :pwrite
  86. cls
  87. if exist therm.1 ren therm.1 therm.0 
  88. if not exist \pads\pwrite.exe goto bad
  89. cd \pads
  90. pwrite
  91. goto top1
  92.  
  93. :pcb
  94. if exist therm.1 ren therm.1 therm.0 
  95. if not exist \pads\pcb.exe goto bad
  96. pcb /m
  97. goto top1
  98.  
  99. :thermal1
  100. if exist therm.0 ren therm.0 therm.1 
  101. cd \pads\thermal
  102. itf
  103. cd \pads
  104. goto top1
  105.  
  106.  
  107. :thermal2
  108. if exist therm.0 ren therm.0 therm.1 
  109. cd \pads\thermal
  110. call thermal
  111. cd \pads
  112. goto top1
  113.  
  114.  
  115.  
  116. :logic
  117. if exist therm.1 ren therm.1 therm.0 
  118. if not exist \pads\cae.exe goto bad
  119. if exist \pads\logfil\startup.mac del \pads\logfil\startup.mac >nul
  120. if exist \pads\logfil\$$$tmp.sch del \pads\logfil\$$$tmp.sch >nul
  121. :top
  122. if not exist \pads\logfil\startup.mac goto userparms
  123. cae /s /r:\pads\logfil\startup.mac
  124. del \pads\logfil\startup.mac >nul
  125. goto errcheck
  126. :userparms
  127. cae /m
  128. :errcheck
  129. if errorlevel 2 goto netlist
  130. if errorlevel 1 goto eco
  131. if errorlevel 0 goto end0
  132.  
  133. :eco
  134. cls
  135. ecogen @\pads\logfil\info.tmp
  136. Pause
  137. DEL \pads\logfil\tmp0.asc
  138. DEL \pads\logfil\tmp1.asc
  139. DEL \pads\logfil\info.tmp
  140. copy \pads\eco.mac \pads\logfil\startup.mac >nul
  141. goto top
  142.  
  143. :netlist
  144. cls
  145. xlate \pads\logfil\info.tmp
  146. Pause
  147. DEL \pads\logfil\info.tmp
  148. DEL \pads\logfil\repout.net
  149. copy \pads\netlst.mac \pads\logfil\startup.mac >nul
  150. goto top
  151.  
  152. :end0
  153. goto top1
  154.  
  155.  
  156. :bad
  157. echo program not found!
  158. pause
  159. goto top1
  160.  
  161. :end
  162. cd \pads
  163.