home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
sndbords
/
proaudio
/
pcmtools
/
pcmtools.arj
/
LOADPCM.ARJ
/
PLAYKEY.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-09-01
|
851b
|
46 lines
@echo off
if "%debug%" == "yes" echo on
:: check the status of pcm
:: error if not available
loadpcm s > nul
if errorlevel 1 goto notthere
:: check syntax
if "%1" == "" goto syntax
:: stat the specified sound number
:: if 255 is returned, the number is out of range
:: if the errorlevel == the sound number, play the sound
:: then quit
loadpcm %1 > nul
if errorlevel 255 goto badnumber
if errorlevel %1 key%1
goto quit
:: pcm has not been installed or xms memory is not present
:notthere
echo PCM is not available
goto quit
:: the user did not specify a sound number to play
:syntax
echo Syntax: playkey #, where # is from 1 to 8
goto quit
:: the user supplied a sound number out of range
:badnumber
echo error: the number must be from 1 to 8
goto quit
:quit