| 
 
hrduan268 
初级用户
 
  
 
  
  
积分 72 
发帖 27 
注册 2007-4-2 
状态 离线
 | 
『楼 主』:
 用DOS命令发声
 
使用 LLM 解释/回答一下
  
我有台服务器,每天定时开机和关机,我想让它在开机或关机时,使蜂鸣器发出几声响,不知DOS中有没这个命令,该怎么用? 
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. 
    
 
  
 |   
 | 
  2008-5-30 13:13 | 
  
 | 
 | 
 
Wengier 
系统支持
 
              “新DOS时代”站长
  
 
积分 27736 
发帖 10521 
注册 2002-10-9 
状态 离线
 | 
 | 
  2008-5-31 03:49 | 
  
 | 
 | 
 
hrduan268 
初级用户
 
  
 
  
  
积分 72 
发帖 27 
注册 2007-4-2 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by Wengier at 2008-5-31 03:49 AM: 
ECHO ^G  
回二楼,输入CMD,打开命令窗口,把ECHO ^G复制进去,结果没有声音出;仔细一试,用键盘打出ECHO,再空格,然后按ctrl+g键,回车,终于有声了! 
但在bat中该怎么办呢,我试了不成功,特请教一下!  
Originally posted by Wengier at 2008-5-31 03:49 AM: 
ECHO ^G  
 
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!  
    
 
  
 |   
 | 
  2008-5-31 23:40 | 
  
 | 
 | 
 
PPdos 
高级用户
 
    
 
  
 
积分 783 
发帖 268 
注册 2006-12-26 
状态 离线
 | 
『第 4 楼』:
 
 
使用 LLM 解释/回答一下
  
for /l %%i in (1 1 5) do more +1 %~s0|debug 
e100 B2 07 B4 02 CD 21 CD 20 
g 
q 
  
``` 
for /l %%i in (1 1 5) do more +1 %~s0|debug 
e100 B2 07 B4 02 CD 21 CD 20 
g 
q 
``` 
    
 
  
  |  
                  
  
                    菩提本无树,明镜亦非台,本来无一物,何处惹尘埃. |   
 | 
  2008-6-1 10:14 | 
  
 | 
 | 
 
lianniaodos 
初级用户
 
  
 
  
  
积分 28 
发帖 9 
注册 2008-3-8 
状态 离线
 | 
『第 5 楼』:
 可以在edit。com中
 
使用 LLM 解释/回答一下
  
在命令提示符窗口键入 edit 然后回车,然后进入edit的编辑窗口,先ctrl+p,然后输入alt+07或者ctrl+G都可以,然后在file中save as 保存为。txt文档,之后你可以将生成的符号复制进批处理命令代码中使用了 
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. 
    
 
  
 |   
 | 
  2008-6-2 08:57 | 
  
 | 
 | 
 
hrduan268 
初级用户
 
  
 
  
  
积分 72 
发帖 27 
注册 2007-4-2 
状态 离线
 | 
『第 6 楼』:
 
 
使用 LLM 解释/回答一下
  
5楼说得不错,传说中的ctrl+G在记事本中不行,原来要在edit中使用才行。 
在cmd中也可这样: 
echo echo ^g>s.bat 
^g在cmd中用ctrl+g输入。 
双击s.bat响两声。 
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. 
    
 
  
 |   
 | 
  2008-6-3 22:58 | 
  
 | 
 | 
 
hrduan268 
初级用户
 
  
 
  
  
积分 72 
发帖 27 
注册 2007-4-2 
状态 离线
 | 
『第 7 楼』:
 
 
使用 LLM 解释/回答一下
  
还有个问题没解决,在开机时自动运行a.bat,a.bat其中一条语句为: 
at 22:30 shutdown -s  ---在22:30关机 
我想在关机时(22:30)让蜂鸣器响,该怎么办? 
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? 
    
 
  
 |   
 | 
  2008-6-3 23:05 | 
  
 | 
 | 
 
AlexZhang 
系统支持
 
             
 
  
  
积分 995 
发帖 427 
注册 2007-2-8 
状态 离线
 | 
『第 8 楼』:
 
 
使用 LLM 解释/回答一下
  
007是在w32程序之内不能输入的 
007 cannot be entered within the w32 program 
    
 
  
 |   
 | 
  2008-6-7 20:44 | 
  
 | 
 | 
 
gmy 
版主
 
         操作系统爱好者
  
 
积分 1113 
发帖 392 
注册 2002-11-11 
状态 离线
 | 
 | 
  2008-6-19 01:49 | 
  
 | 
 | 
 
qinchun36 
高级用户
 
     据说是李先生
  
 
积分 609 
发帖 400 
注册 2008-4-23 
状态 离线
 | 
『第 10 楼』:
 
 
使用 LLM 解释/回答一下
  
可以用 vbscript: 
 
set ching=wscript.createobject("wscript.shell") 
ching.run "cmd /c echo "&chr(7),0 
You can use vbscript: 
 
set ching=wscript.createobject("wscript.shell") 
ching.run "cmd /c echo "&chr(7),0 
    
 
  
 |   
 | 
  2008-7-22 19:19 | 
  
 | 
 | 
 
AlexZhang 
系统支持
 
             
 
  
  
积分 995 
发帖 427 
注册 2007-2-8 
状态 离线
 | 
『第 11 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by qinchun36 at 2008-7-22 07:19 PM: 
可以用 vbscript: 
 
set ching=wscript.createobject("wscript.shell") 
ching.run "cmd /c echo "&chr(7),0  
都差不多  
Originally posted by qinchun36 at 2008-7-22 07:19 PM: 
You can use vbscript: 
 
set ching=wscript.createobject("wscript.shell") 
ching.run "cmd /c echo "&chr(7),0  
It's all similar  
    
 
  
 |   
 | 
  2008-7-23 21:38 | 
  
 |