调用系统蜂鸣器方法
调用系统蜂鸣器方法:
1.cmd命令:echo echo ^G>d:\w.bat(输入时^G是组合键Ctrl+G输入的);
2.双击D盘下w.bat即可,以后在其他文件中引用可以复制粘贴过去即可^_^
响三次
@echo off
echo
exit
响十次
@echo off
for /l %%i in (1,1,10) do (
set /p=<nul
)
pause>nul
应用实例
::拷贝NAND image到电脑SD卡中
@:lab4
@echo.
@if exist "j:\" (goto continue4) else (echo 未检测到SD卡,请插入SD卡 && echo )::此处空格是DOS驱动蜂鸣器的ASII码
@goto main
@pause
:continue4
@echo 4 files to copy...please wait!
@if exist "j:\EBOOTSD.nb0" del "j:\EBOOTSD.nb0"
@echo 1.copy nk.bin...
@copy D:\WINCE600\OSDesigns\SBC8100\SBC8100\RelDir\SBC8100_ARMV4I_Release\nk.bin j:\nk.bin
@echo 2.copy MLO...
@copy D:\WINCE600\OSDesigns\SBC8100\SBC8100\RelDir\SBC8100_ARMV4I_Release\MLO j:\MLO
@echo 3.copy EBOOTNAND.nb0 and rename it as"EBOOTSD.nb0"...
@copy D:\WINCE600\OSDesigns\SBC8100\SBC8100\RelDir\SBC8100_ARMV4I_Release\EBOOTNAND.nb0 j:\EBOOTSD.nb0
@echo 4.copy XLDRNAND.nb0...
@copy D:\WINCE600\OSDesigns\SBC8100\SBC8100\RelDir\SBC8100_ARMV4I_Release\XLDRNAND.nb0 j:\XLDRNAND.nb0
@echo Copy files done!
@goto main