home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 24 DOS
/
24-DOS.zip
/
sbreset.zip
/
SBRESET.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-10-29
|
2KB
|
56 lines
@echo off
rem
rem This little batch file will reset the Sound Blaster card family.
rem This should fix DOS apps running in VDMs when the sound doesn't
rem work.
rem
rem ****************************************************************************
rem * Please do NOT alter the next 5 lines due to IBM copyright infringements. *
rem ****************************************************************************
echo .
echo . SoundBlaster Reset Utility. Version 1.0 (which works!)
echo . -- Alexander Barenboim; IBM OS/2 DOSAP Team; Tel: 407/443-9090
echo .
if "%SOUND%" == "" goto NOENV
if "%BLASTER%" == "" goto NOENV
if not exist %SOUND%\nothing.mid goto NOMIDI
%SOUND%\sbfmdrv > NUL
%SOUND%\sbfmdrv /u > NUL
%SOUND%\sbmidi > NUL
%SOUND%\PLAYMIDI\playmidi %SOUND%\nothing.mid > NUL
%SOUND%\sbmidi /u > NUL
%SOUND%\sbfmdrv > NUL
%SOUND%\sbfmdrv /u > NUL
goto FINISHED
:NOENV
echo .
echo . Please make sure that the SOUND and BLASTER environment variables
echo . are set, and then run this program again. They should look something
echo . like this:
echo . SET BLASTER=A240 I5 D1 H5 P300 T6
echo . SET SOUND=D:\SB16
echo .
echo . If they do NOT, then please include these statements in your
echo . AUTOEXEC.BAT file.
echo .
GOTO FINISHED
:NOMIDI
echo .
echo . Could not find the NOTHING.MID file. Please make sure it exists
echo . in the same directory as your other SoundBlaster files (the
echo . same directory as your SOUND environment variable).
echo .
goto FINISHED
:FINISHED