How to start a system “beep”, from the built-in pc speaker, using a batch file?

前端 未结 7 1218
悲&欢浪女
悲&欢浪女 2020-12-08 16:59

I have written a batch script in an interactive mode, for making some tasks.

Sometimes, These tasks takes a long time to be finished, and then the batch asks if the

7条回答
  •  长情又很酷
    2020-12-08 17:16

    @echo off
    echo BEEP.BAT by CSS---
    echo PRESS ANY KEY TO HEAR A BEEP...
    PAUSE>NUL
    ECHO 
    echo I BEEPED
    PAUSE
    

    there is an ASCII control code ^G after the echo. Just copy this code, and save it as ASCII/ANSI using a text editor.

提交回复
热议问题