home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 24 DOS / 24-DOS.zip / sbreset.zip / SBRESET.BAT < prev    next >
DOS Batch File  |  1993-10-29  |  2KB  |  56 lines

  1. @echo off
  2.  
  3. rem
  4. rem    This little batch file will reset the Sound Blaster card family.
  5. rem    This should fix DOS apps running in VDMs when the sound doesn't
  6. rem    work.
  7. rem
  8.  
  9. rem ****************************************************************************
  10. rem * Please do NOT alter the next 5 lines due to IBM copyright infringements. *
  11. rem ****************************************************************************
  12.  
  13. echo .
  14. echo . SoundBlaster Reset Utility. Version 1.0 (which works!)
  15. echo .       -- Alexander Barenboim; IBM OS/2 DOSAP Team; Tel: 407/443-9090
  16. echo .
  17.  
  18.  
  19. if "%SOUND%" == "" goto NOENV
  20. if "%BLASTER%" == "" goto NOENV
  21. if not exist %SOUND%\nothing.mid goto NOMIDI
  22.  
  23. %SOUND%\sbfmdrv > NUL
  24. %SOUND%\sbfmdrv /u  > NUL
  25. %SOUND%\sbmidi > NUL
  26. %SOUND%\PLAYMIDI\playmidi %SOUND%\nothing.mid > NUL
  27. %SOUND%\sbmidi /u > NUL
  28. %SOUND%\sbfmdrv > NUL
  29. %SOUND%\sbfmdrv /u > NUL
  30. goto FINISHED
  31.  
  32. :NOENV
  33. echo .
  34. echo .  Please make sure that the SOUND and BLASTER environment variables
  35. echo .  are set, and then run this program again. They should look something
  36. echo .  like this:
  37. echo .            SET BLASTER=A240 I5 D1 H5 P300 T6
  38. echo .            SET SOUND=D:\SB16
  39. echo .
  40. echo .  If they do NOT, then please include these statements in your
  41. echo .  AUTOEXEC.BAT file.
  42. echo .
  43. GOTO FINISHED
  44.  
  45. :NOMIDI
  46. echo .
  47. echo . Could not find the NOTHING.MID file. Please make sure it exists
  48. echo . in the same directory as your other SoundBlaster files (the
  49. echo . same directory as your SOUND environment variable).
  50. echo .
  51. goto FINISHED
  52.  
  53.  
  54. :FINISHED
  55.  
  56.