home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / tipi / t.bat < prev    next >
DOS Batch File  |  1993-11-07  |  570b  |  48 lines

  1. @echo off
  2.  
  3. :top
  4. tipi t.tpi %1
  5. if errorlevel 8 goto :finis
  6. if errorlevel 7 goto :run
  7. if errorlevel 6 goto :lookup
  8. if errorlevel 5 goto :edit
  9. if errorlevel 4 goto :finis
  10. if errorlevel 3 goto :run
  11. if errorlevel 2 goto :lookupPC
  12. if errorlevel 1 goto :editPC
  13. if errorlevel 0 goto :noprog
  14.  
  15. :editPC
  16. cls
  17. edit %1
  18. goto :top
  19.  
  20. :edit
  21. cls
  22. setapp e %1
  23. app /e
  24. goto :top
  25.  
  26. :lookup
  27. cls
  28. setapp a tipi.adr
  29. app /a
  30. goto :top
  31.  
  32. :run
  33. cls
  34. tipi %1 %2 %3 %4 %5 %6 %7 %8
  35. pause
  36. goto :top
  37.  
  38. :lookupPC
  39. cls
  40. edit tipi.adr
  41. goto :top
  42.  
  43. :noprog
  44. pause
  45.  
  46. :finis
  47. cls
  48.