用于设置系统蜂鸣声的批处理/VB 脚本 [英] Batch/VB Script to set of System Beep

查看:44
本文介绍了用于设置系统蜂鸣声的批处理/VB 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,使用批处理、vbs 或任何其他内置的 Windows 语言,我可以让系统发出哔哔声(就像您在启动时按下某个键时发出的哔哔声)吗?我不确定这是否可行,但任何帮助都会很棒!

I'm wondering, with batch, vbs or any other built in windows languages, can I make the system beep (like the one when you press a key at startup) go off? I'm not sure if this is possible, but any help would be awesome!

推荐答案

这很容易使用 ctrl+G(在 cmd 中显示为 ^G).

This is very easy using ctrl+G (which comes up as ^G in cmd).

只需输入:

Echo ^G
Echo ^G >> beep.txt
Type beep.txt

这只能在 CMD 中使用,除非您将输出重定向到文本文件(如上所示),然后您可以在其中将其复制到批处理文件中或在需要时输入该文件发出哔哔声.

This can only be used in CMD, unless you redirect the output to a text file (As demonstrated above), where you can then copy it into your batch file or type the file when you want to beep.

记住上面代码中的^G是通过按键Ctrl + g实现的.

Remember in the above code ^G is achieved by key pressing Ctrl + g.

莫娜

这篇关于用于设置系统蜂鸣声的批处理/VB 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆