home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_1_1994.iso / a / 00030 / demo.bat < prev    next >
DOS Batch File  |  1993-10-21  |  1KB  |  58 lines

  1. echo off
  2. cls
  3. break off
  4. if exist MSOFFICE.EXE goto :doit
  5. echo File Not Found
  6. echo Please make sure that the default drive and/or
  7. echo subdirectory are set correctly.
  8. goto :end
  9.  
  10. :doit
  11. goto :plain
  12.  
  13. :fromacc
  14. MSOFFICE D=1
  15. if errorlevel 200 goto runaccess
  16.  
  17. :plain
  18. MSOFFICE
  19. if errorlevel 200 goto runaccess
  20.  
  21. if not errorlevel 255 goto chk254
  22. echo EXE file corrupted.  Diskette may be damaged.
  23. echo Demo terminated.
  24. goto :end
  25. :chk254
  26. if not errorlevel 254 goto chk253
  27. echo Sorry, This demo requires DOS 2.0 or higher.
  28. goto :end
  29. :chk253
  30. if not errorlevel 253 goto chk252
  31. echo Sorry, this demo requires VGA graphics capabilities.
  32. goto :end
  33. :chk252
  34. if not errorlevel 252 goto chk251
  35. echo Sorry, this demo requires EGA or VGA graphics capabilities.
  36. goto :end
  37. :chk251
  38. if not errorlevel 251 goto chk250
  39. echo Sorry, 256K of memory on the EGA card is required to run this demo.
  40. goto :end
  41. :chk250
  42. if not errorlevel 250 goto allok
  43. echo Sorry, this demo needs to be run from a hard disk.  Try again.
  44. goto :end
  45. :allok
  46. echo Thank you for watching our Microsoft Office demo
  47. echo If you would like to see it again,type:
  48. echo DEMO, and press the ENTER key.
  49. goto :end
  50. rem ------------------------------------
  51. :runaccess
  52. ACCESS 0
  53. cd ..
  54. goto :fromacc
  55.  
  56. rem ------------------------------------
  57. :end end
  58.