@echo off
echo ==================================
echo Start to record:
SoundRecorder.exe /duration 00:00:20 /file c:\test.wma
if not %errorlevel% == 0 GOTO RecordError
echo End to record
echo Please input any key to exit:
set /p input=
if not %input% == "" exit 0
:RecordError
Echo "Failed to record."
exit 1
echo ==================================
echo Start to record:
SoundRecorder.exe /duration 00:00:20 /file c:\test.wma
if not %errorlevel% == 0 GOTO RecordError
echo End to record
echo Please input any key to exit:
set /p input=
if not %input% == "" exit 0
:RecordError
Echo "Failed to record."
exit 1