home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / music / vaisdk.arj / IS.BAT < prev    next >
DOS Batch File  |  1994-04-10  |  780b  |  41 lines

  1.     @echo off
  2. rem
  3. rem test the presents of the hardware & software using the VBE/AI driver
  4. rem
  5.     if (%1)==() goto helps
  6.  
  7.     %1 /V >nul
  8.     if ERRORLEVEL,2 goto hwsw
  9.     if ERRORLEVEL,1 goto hwnosw
  10.     if ERRORLEVEL,0 goto nohw
  11.     goto unkn
  12.  
  13. :hwsw
  14.     echo there is both hardware and a VBE/AI driver.
  15.     goto done
  16.  
  17. :hwnosw
  18.     echo there is hardware without a VBE/AI driver.
  19.     goto done
  20.  
  21. :nohw
  22.     echo there is no hardware.
  23.     goto done
  24.  
  25. :helps
  26.     echo 
  27.     echo Test to see if hardware and VBE/AI driver are present
  28.     echo 
  29.     echo To Use:  DOS\ is [driver]
  30.     echo 
  31.     echo Where:   [driver] is the name of a VBE/AI executable driver.
  32.     echo 
  33.  
  34.     goto done
  35. :unkn
  36.     echo the driver's response was invalid!
  37.  
  38. :done
  39.  
  40.  
  41.