![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-19 10:09 |
47,814 topics / 349,908 posts / today 0 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » Making sounds with DOS commands |
| Printable Version 1,797 / 10 |
| Floor1 hrduan268 | Posted 2008-05-30 13:13 |
| 初级用户 Posts 27 Credits 72 | |
|
I have a server that is scheduled to power on and off every day. I want the buzzer to beep a few times when it powers on or off. I wonder if there is a command in DOS for this and how to use it.
|
|
| Floor2 Wengier | Posted 2008-05-31 03:49 |
| 系统支持 Posts 10,521 Credits 27,736 | |
| Floor3 hrduan268 | Posted 2008-05-31 23:40 |
| 初级用户 Posts 27 Credits 72 | |
Originally posted by Wengier at 2008-5-31 03:49 AM: Reply to the second floor, enter CMD, open the command window, copy ECHO ^G in, but there is no sound; after careful testing, type ECHO, then space, then press the ctrl+g key, press enter, finally there is sound! But what to do in the bat? I tried and it didn't work, so I ask for advice! |
|
| Floor4 PPdos | Posted 2008-06-01 10:14 |
| 高级用户 Posts 268 Credits 783 | |
|
```
for /l %%i in (1 1 5) do more +1 %~s0|debug e100 B2 07 B4 02 CD 21 CD 20 g q ``` |
|
| Floor5 lianniaodos | Posted 2008-06-02 08:57 |
| 初级用户 Posts 9 Credits 28 | |
|
Type "edit" in the command prompt window and press Enter, then enter the edit editing window. First, press Ctrl + P, then you can input Alt + 07 or Ctrl + G. Then, save as a.txt document in "file". After that, you can copy the generated symbol into the batch command code for use.
|
|
| Floor6 hrduan268 | Posted 2008-06-03 22:58 |
| 初级用户 Posts 27 Credits 72 | |
|
What the 5th floor said is quite right. The so-called ctrl+G doesn't work in Notepad; it turns out it has to be used in Edit.
In cmd, it can also be done like this: echo echo ^g>s.bat Enter ^g in cmd using ctrl+g. Double-click s.bat to hear two beeps. |
|
| Floor7 hrduan268 | Posted 2008-06-03 23:05 |
| 初级用户 Posts 27 Credits 72 | |
|
There is still a problem that hasn't been solved. When booting up, automatically run a.bat. One of the statements in a.bat is:
at 22:30 shutdown -s ---Shut down at 22:30 I want to make the buzzer sound when shutting down (at 22:30). How to do it? |
|
| Floor8 AlexZhang | Posted 2008-06-07 20:44 |
| 系统支持 Posts 438 Credits 1,023 | |
|
007 cannot be entered within the w32 program
|
|
| Floor9 gmy | Posted 2008-06-19 01:49 |
| 版主 Posts 392 Credits 1,113 | |
|
Copy the beep file from http://upload.cn-dos.net/img/523.rar to the c:\ or a specified directory, and run in CMD:
at 22:30 cmd /c type c:\beep |
|
| Floor10 qinchun36 | Posted 2008-07-22 19:19 |
| 高级用户 Posts 400 Credits 609 | |
|
You can use vbscript:
set ching=wscript.createobject("wscript.shell") ching.run "cmd /c echo "&chr(7),0 |
|
| Floor11 AlexZhang | Posted 2008-07-23 21:38 |
| 系统支持 Posts 438 Credits 1,023 | |
Originally posted by qinchun36 at 2008-7-22 07:19 PM: It's all similar |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |