批处理启动麦克风录音

来源:互联网 发布:网页美工和淘宝美工 编辑:程序博客网 时间:2024/04/25 23:06
@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
0 0
原创粉丝点击