home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 33 VDrivers / 33-VDrivers.zip / ncrvga.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1993-10-11  |  2KB  |  53 lines

  1. @echo off
  2. if "%1" == "" goto nodrive
  3. goto chkdrive
  4.  
  5. :nodrive
  6. echo [NCR SVGA INSTALL]  Error ! - No drive letter specified
  7. goto err_exit
  8.  
  9. :chkdrive
  10. @echo [NCR SVGA INSTALL]
  11. @echo [NCR SVGA INSTALL]   Please wait ..........
  12. @echo [NCR SVGA INSTALL]
  13. attrib %1:\os2ldr.msg  -h -s
  14. if exist %1:\os2ldr.msg  goto install
  15. echo [NCR SVGA INSTALL]  Error ! - Invalid OS/2 drive letter specified ... (%1)
  16. goto err_exit
  17.  
  18. :err_exit
  19. echo [NCR SVGA INSTALL]
  20. echo [NCR SVGA INSTALL]  Usage: install   drive-letter
  21. echo [NCR SVGA INSTALL]
  22. echo [NCR SVGA INSTALL]  (Note: You must OMIT the colon after the drive letter)
  23. echo 
  24. goto exit
  25.  
  26. :install
  27. if not exist %1:\os2\install\dspinstl.exe goto no_dspinstl
  28. if exist a:\ncr77c22.dsc  copy a:\ncr77c22.dsc  %1:\os2\install\*.*  > nul
  29. if exist a:\svgancr.dll   copy a:\svgancr.dll   %1:\os2\dll\*.*      > nul
  30. if exist a:\svgancr.exe   copy a:\svgancr.exe   %1:\os2\*.*          > nul
  31.  
  32.  
  33. %1:
  34. cd \
  35. start dspinstl
  36. goto exit
  37.  
  38. :no_dspinstl
  39. echo [NCR SVGA INSTALL]  Error ! -
  40. echo [NCR SVGA INSTALL]  Error ! - The program %1:\OS2\INSTALL\DSPINSTL.EXE was not found.
  41. echo [NCR SVGA INSTALL]  Error ! - This could mean one of serveral things:
  42. echo [NCR SVGA INSTALL]  Error ! -
  43. echo [NCR SVGA INSTALL]  Error ! -
  44. echo [NCR SVGA INSTALL]  Error ! -        A)  You have OS/2 2.0 installed.  This installation 
  45. echo [NCR SVGA INSTALL]  Error ! -            requires OS/2 2.1
  46. echo [NCR SVGA INSTALL]  Error ! -
  47. echo [NCR SVGA INSTALL]  Error ! -        B)  OS/2 2.1 is not properly installed on
  48. echo [NCR SVGA INSTALL]  Error ! -            drive %1:
  49. echo [NCR SVGA INSTALL]  Error ! -
  50.  
  51. :exit
  52. echo on
  53.