home *** CD-ROM | disk | FTP | other *** search
- : This batch file sounds several Alarm
- : types, using both single and two tone formats.
- : There should never be an error after an Alarm
- : call to Sound Off!....but we check for one anyway.
- : ---------------------------------------------------
- @echo off
- echo Various Alarm Formats....
- echo Pressing any key will cycle to the next.
- echo Pressing Esc will abort the batch file (DELAY.EXE must be used)
- echo:
- echo Two Tone: Switch /A2 or /a2
- echo ---------------------------
- echo 800 400 150 200
- Soundoff /a2 800 400 150 200
- if not errorlevel 0 goto bad :Test for Sound Off! error
- delay 5
- if errorlevel 99 goto abort :Test for Esc keypress (using DELAY)
- echo 900 700 150 200
- soundoff /a2 900 700 150 200
- if not errorlevel 0 goto bad
- delay 5
- if errorlevel 99 goto abort
- echo 1900 1700 150 200
- soundoff /a2 1900 1700 150 200
- if not errorlevel 0 goto bad
- delay 5
- if errorlevel 99 goto abort
- echo 500 400 50 75
- soundoff /a2 500 400 50 75
- if not errorlevel 0 goto bad
- delay 5
- if errorlevel 99 goto abort
- echo:
- echo Single Tone: Switch /A or /a
- echo ----------------------------
- echo 440 50 50
- soundoff /a 440 50 50
- if not errorlevel 0 goto bad
- delay 5
- if errorlevel 99 goto abort
- echo 640 200 300
- soundoff /a 640 200 300
- if not errorlevel 0 goto bad
- delay 5
- if errorlevel 99 goto abort
- echo 200 300 500
- soundoff /a 200 300 500
- if not errorlevel 0 goto bad
- delay 5
- if errorlevel 99 goto abort
- goto abort
- :bad
- echo There was a problem......
- goto end
- :abort
- echo:
- soundoff /s 200 100 100 25
- echo User Aborted Test!
- delay 5
- :end
- echo:
- soundoff /s 400 900 50 100
- echo Alarm Testing Completed!
-