Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Beep with internal speaker

1,656 views
Skip to first unread message

Don84

unread,
Jan 13, 2010, 12:03:01 PM1/13/10
to
Hi geniuses,

I have another question, how could we make the PC beep twice with its
internal speaker with either XP, Vista or Windows 7?

Thank you.

Don

Message has been deleted

John Gray

unread,
Jan 13, 2010, 1:45:53 PM1/13/10
to

That assumes the PC actually has an internal speaker! Dell business
PCs over the last couple of years have the internal speaker as a
chargeable option...

Don84

unread,
Jan 13, 2010, 4:41:20 PM1/13/10
to

Yep. the following 2 lines of code
@ECHO OFF
ECHO ^G

did not generate a sound. the box is Vista on a compaq presario 8000.
hmm, are we at our wit's end?

Message has been deleted

Don84

unread,
Jan 13, 2010, 7:32:54 PM1/13/10
to
On Jan 13, 5:07 pm, Guy <Use-Reply-To-Address-Header@[127.1]> wrote:

> Don84 wrote:
> > Yep.  the following 2 lines of code
> > @ECHO OFF
> > ECHO ^G
>
> > did not generate a sound.  the box is Vista on a compaq presario
> > 8000. hmm, are we at our wit's end?
>
> You typed at the command prompt "Ctrl G" not "^G" -- right?
>
> If your BAT file appears as your wrote... it is wrong.
>
> It would appear like:
>
> @ECHO OFF
> ECHO  

Per John Gray, the CTRL G OR CTRL ^G didn't work. Also, you know if
someone knows about internal speaker he/she tends to know a bit about
batch programs as well. so, prompt> stuff is just confusing

Ted Davis

unread,
Jan 13, 2010, 8:49:14 PM1/13/10
to
On Wed, 13 Jan 2010 16:32:54 -0800, Don84 wrote:
> Per John Gray, the CTRL G OR CTRL ^G didn't work. Also, you know if
> someone knows about internal speaker he/she tends to know a bit about
> batch programs as well. so, prompt> stuff is just confusing

Most likely you will have to enter it into a file with a hex editor, or
one that accepts the old procedure of holding down ALT while
typing 7 on the keypad. It doesn't work from the command line.

--

T.E.D. (tda...@mst.edu)

Larry__Weiss

unread,
Jan 13, 2010, 8:58:03 PM1/13/10
to

From the command line:

copy con mybeep.bat
@ECHO OFF
ECHO ^G
^Z

- Larry

Message has been deleted

Don84

unread,
Jan 13, 2010, 11:00:01 PM1/13/10
to

Nope. We've assumed my box has an internal speaker, yes? As John
Gray pointed out some line of PC nowadays don't include internal
speaker, right?

Don84

unread,
Jan 13, 2010, 11:04:03 PM1/13/10
to
On Jan 13, 9:30 pm, Guy <Use-Reply-To-Address-Header@[127.1]> wrote:
> Larry__Weiss wrote:

> > Ted Davis wrote:
> >> Don84 wrote:
>
> >>> Per John Gray, the CTRL G OR CTRL ^G didn't work.  
>
> Did John Gray write anything other than the below?

>
>   "That assumes the PC actually has an internal speaker!  Dell business
>    PCs over the last couple of years have the internal speaker as a
>    chargeable option... "
>
>
>
> >>> Also, you know if someone knows about internal speaker he/she
> >>> tends to know a bit about batch programs as well.  so, prompt>
> >>> stuff is just confusing
>
> >> Most likely you will have to enter it into a file with a hex
> >> editor, or one that accepts the old procedure of holding down ALT
> >> while typing 7 on the keypad. It doesn't work from the command
> >> line.
>
> >  From the command line:
>
> > copy con mybeep.bat
> > @ECHO OFF
> > ECHO ^G
> > ^Z
>
> At a prompt create a "mybeep.bat" like:
>
> edit mybeep.bat
>
> In Edit:
>
> @echo ^P^G
>
> Alt+F, Alt+S, Alt+F, Alt+X

ok, getting better, it produced the the sound symbol at the prompt but
no sound.
Also, I pressed the Ctrl key for ^

Thanks.

Don84

unread,
Jan 13, 2010, 11:12:57 PM1/13/10
to

Gugys, guys, I'm sorry I've just realized the beep is not a good
solution. The initial idea of the beep is an alert for an upcoming
event, say, tomorrow, and the users are college students, but the beep
is going to be annoying in a lecture hall or library, sorry, I just
thought of this, would have to think up something else ....

billious

unread,
Jan 14, 2010, 12:21:42 AM1/14/10
to
Don84 wrote:
>
> Gugys, guys, I'm sorry I've just realized the beep is not a good
> solution. The initial idea of the beep is an alert for an upcoming
> event, say, tomorrow, and the users are college students, but the beep
> is going to be annoying in a lecture hall or library, sorry, I just
> thought of this, would have to think up something else ....

start notepad warningfile


Larry__Weiss

unread,
Jan 14, 2010, 10:20:39 AM1/14/10
to
Don84 wrote:
> Gugys, guys, I'm sorry I've just realized the beep is not a good
> solution. ...
>

Say again what problem you need a solution for?

- Larry

Frank P. Westlake

unread,
Jan 14, 2010, 11:13:54 AM1/14/10
to
"Larry__Weiss"
news:OoKdnaYPx7fWq9LW...@posted.internetamerica...

> Say again what problem you need a solution for?

That mesage is the first one in this thread. Easy to find. It wasn't a
problem; he just wanted to know how to make the internal speaker beep.

Perhaps a CSCRIPT message box would be a better method of making the
alert.

Frank


Message has been deleted

Don84

unread,
Jan 14, 2010, 11:47:03 AM1/14/10
to
On Jan 14, 11:35 am, Guy <Use-Reply-To-Address-Header@[127.1]> wrote:
> Frank P. Westlake wrote:
> > Larry__Weiss...

>
> >> Say again what problem you need a solution for?
>
> > That mesage is the first one in this thread. Easy to find. It
> > wasn't a problem; he just wanted to know how to make the internal
> > speaker beep.
>
> > Perhaps a CSCRIPT message box would be a better method of making
> > the alert.
>
> msg %username% "message text"
>
> msg console "message text"
>
> msg 0 "message text"

ok, when I tried
CSCRIPT.EXE //i msg 0 "event tomorrow"

it seems being executed but no alert, what's wrong? Thanks.

Message has been deleted

Frank P. Westlake

unread,
Jan 14, 2010, 12:02:18 PM1/14/10
to
"Don84"
news:b9883454-e78a-4d14...@e37g2000yqn.googlegroups.com...

> ok, when I tried
> CSCRIPT.EXE //i msg 0 "event tomorrow"
>
> it seems being executed but no alert, what's wrong? Thanks.


I don't know whay that guy was indicating but you need to write a
seperate script for CSCRIPT.EXE. If you can use VBScript then look at
this subroutine:

http://groups.google.com/group/alt.msdos.batch.nt/msg/4b6177f16629bd45

Frank


Esra Sdrawkcab

unread,
Jan 14, 2010, 12:27:39 PM1/14/10
to

Interestingly (or maybe not) when I press Alt-9 in a Cmd prompt under XP
Pro, I get "$_hpcst$.hpc" (without quotes) "pasted" to the command prompt
(Alt-8 is the familiar backspace and Alt-7 is beep, which the OP requires).

--
Nuns! Reverse!

Message has been deleted

Larry__Weiss

unread,
Jan 14, 2010, 1:07:28 PM1/14/10
to
Don84 wrote:
> Gugys, guys, I'm sorry I've just realized the beep is not a good
> solution. The initial idea of the beep is an alert for an upcoming
> event, say, tomorrow, and the users are college students, but the beep
> is going to be annoying in a lecture hall or library, sorry, I just
> thought of this, would have to think up something else ....
>

So, you want ideas as to how issue an alert sort of like how a cell phone has a
vibrate mode?

Some programs I use that want to do that, start blinking their icons at the
bottom of the screen.

Other programs display a balloon-help style bulletin that either has to be
dismissed explicitly or one that dissolves after a short period of time (for
example, to announce new email).

- Larry

Esra Sdrawkcab

unread,
Jan 14, 2010, 2:11:58 PM1/14/10
to
On Thu, 14 Jan 2010 17:51:49 -0000, Guy
<Use-Reply-To-Address-Header@[127.1]> wrote:

> Esra Sdrawkcab wrote:
>
>> Interestingly (or maybe not) when I press Alt-9 in a Cmd prompt
>> under XP Pro, I get "$_hpcst$.hpc" (without quotes)
>>
>
>

> Pressing the TAB key should give you a hint.

Ah, it's a feature of XP's cmd prompt. Doh!

--
Nuns! Reverse!

foxidrive

unread,
Jan 14, 2010, 2:23:38 PM1/14/10
to
On Thu, 14 Jan 2010 17:27:39 -0000, "Esra Sdrawkcab" <ad...@127.0.0.1>
wrote:

>Interestingly (or maybe not) when I press Alt-9 in a Cmd prompt under XP
>Pro, I get "$_hpcst$.hpc" (without quotes) "pasted" to the command prompt
>(Alt-8 is the familiar backspace and Alt-7 is beep, which the OP requires).

I don't get any response from alt keys in a cmd window.

XP Pro SP3

Larry__Weiss

unread,
Jan 14, 2010, 2:34:11 PM1/14/10
to

I don't think I did either until I installed PowerShell.
See this article:

http://support.microsoft.com/kb/310530

- Larry

Larry__Weiss

unread,
Jan 14, 2010, 2:36:47 PM1/14/10
to

And it is the "9" on the numeric-pad in conjunction with the Alt key that is
special. The other Alt-9 just gets me a "9".

- Larry

Larry__Weiss

unread,
Jan 14, 2010, 2:39:05 PM1/14/10
to

And I should have thought it out that Alt-9 == Alt-[0 0 9] and is just a fancy
way to hit the Tab key...

- Larry

foxidrive

unread,
Jan 14, 2010, 2:44:12 PM1/14/10
to
On Thu, 14 Jan 2010 13:34:11 -0600, Larry__Weiss <l...@airmail.net> wrote:

>foxidrive wrote:
>> On Thu, 14 Jan 2010 17:27:39 -0000, "Esra Sdrawkcab" <ad...@127.0.0.1>
>> wrote:
>>> Interestingly (or maybe not) when I press Alt-9 in a Cmd prompt under XP
>>> Pro, I get "$_hpcst$.hpc" (without quotes) "pasted" to the command prompt
>>> (Alt-8 is the familiar backspace and Alt-7 is beep, which the OP requires).
>>
>> I don't get any response from alt keys in a cmd window.
>> XP Pro SP3

>I don't think I did either until I installed PowerShell.

I installed Powershell but haven't opened it yet.

Thanks Larry, the command completion is also set in Tweakui if that's
installed. I seldom use a cmd prompt to navigate folders etc (Total
Commander does that for me) so I haven't played with it much.

Larry__Weiss

unread,
Jan 14, 2010, 3:27:27 PM1/14/10
to
foxidrive wrote:
> Thanks Larry, the command completion is also set in Tweakui if that's
> installed. I seldom use a cmd prompt to navigate folders etc (Total
> Commander does that for me) so I haven't played with it much.
>

Another tool I've found very handy is "Search Everything" at
http://www.voidtools.com/

- Larry

Message has been deleted

FileGod

unread,
Jan 15, 2010, 12:07:52 AM1/15/10
to
Don84 <tatat...@gmail.com> wrote:
>>On Jan 13, 1:45=A0pm, John Gray <gga...@emailias.com> wrote: >> On 13 Jan, 17:03, Don84 <tatata9...@gmail.com> wrote:�>�> > Hi geniuses, >

>Yep. the following 2 lines of code
>@ECHO OFF
>ECHO ^G

If you use the DOS edit the way I used to do it was hold down
on the control key, hit the letter P, keep holding on the
control key & hit the letter G to make a beep.bat, echo can be
used before the symbol, @echo off is not required. Using the old
>nul will hide the error that gets displayed.
I this it works with Win XP...

http://www.filegod.netfirms.com/Bats

Esra Sdrawkcab

unread,
Jan 15, 2010, 4:34:22 AM1/15/10
to
On Thu, 14 Jan 2010 19:23:38 -0000, foxidrive <got...@woohoo.invalid>
wrote:

Alt-*numpad* numeral(s)
- if it's a laptop you may need a further "Fn" key to be held as well


--
Nuns! Reverse!

Esra Sdrawkcab

unread,
Jan 15, 2010, 4:53:38 AM1/15/10
to

Caveat; only indexes NTFS; I have a large FAT32 (from W98 compatibilty
days) which isn't indexed.
- I use a small w98 program (also works under XP) called Cathy by R.
Vasicek:
http://www.mtg.sk/rva/
dl'd: http://www.mtg.sk/rva/Cathy.zip


--
Nuns! Reverse!

foxidrive

unread,
Jan 15, 2010, 6:08:22 AM1/15/10
to
On Fri, 15 Jan 2010 09:34:22 -0000, "Esra Sdrawkcab" <ad...@127.0.0.1>
wrote:

>>> Interestingly (or maybe not) when I press Alt-9 in a Cmd prompt under XP
>>> Pro, I get "$_hpcst$.hpc" (without quotes) "pasted" to the command
>>> prompt
>>> (Alt-8 is the familiar backspace and Alt-7 is beep, which the OP
>>> requires).
>

>Alt-*numpad* numeral(s)
>- if it's a laptop you may need a further "Fn" key to be held as well

That's the standard behaviour all the way back to MSDOS days. Type ALT 065
and you will get a capital A. 65 is the ascii value for A.

Some text editors use this technique, and some don't.

Larry__Weiss

unread,
Jan 15, 2010, 10:02:34 AM1/15/10
to
Esra Sdrawkcab wrote:
> On Thu, 14 Jan 2010 20:27:27 -0000, Larry__Weiss <l...@airmail.net> wrote:
>> foxidrive wrote:
>>> Thanks Larry, the command completion is also set in Tweakui if that's
>>> installed. I seldom use a cmd prompt to navigate folders etc (Total
>>> Commander does that for me) so I haven't played with it much.
>>>
>> Another tool I've found very handy is "Search Everything" at
>> http://www.voidtools.com/
>>
> Caveat; only indexes NTFS; I have a large FAT32 (from W98 compatibilty
> days) which isn't indexed.
> - I use a small w98 program (also works under XP) called
> Cathy by R. Vasicek:
> http://www.mtg.sk/rva/
> dl'd:
> http://www.mtg.sk/rva/Cathy.zip
>

Thanks for pointing that out. It is only recently that I have exclusively NTFS
volumes, but I still have some older FAT32 drives in a cabinet that I might like
to examine someday.

- Larry

Frank P. Westlake

unread,
Jan 15, 2010, 10:22:28 AM1/15/10
to
"carlos"
news:2d81664d-b637-4b0a...@c3g2000yqd.googlegroups.com...

> Cscript /Nologo t.vbs > bells.zi_

On my system (and others) it is necessary to specify the engine:

Cscript /Nologo /E:VBS t.vbs > bells.zi_

It is that way so that a double-click will not run the script.

Frank


jya...@peoplepc.com

unread,
Jan 15, 2010, 3:56:27 PM1/15/10
to
On Wed, 13 Jan 2010 13:41:20 -0800 (PST), Don84 <tatat...@gmail.com>
wrote:

>On Jan 13, 1:45�pm, John Gray <gga...@emailias.com> wrote:
>> On 13 Jan, 17:03, Don84 <tatata9...@gmail.com> wrote:
>>
>> > Hi geniuses,
>>

>> > I have another question, how could we make the PC beep twice with its
>> > internal speaker with either XP, Vista or Windows 7?
>>
>> > Thank you.
>>
>> > Don
>>

>> That assumes the PC actually has an internal speaker! �Dell business
>> PCs over the last couple of years have the internal speaker as a
>> chargeable option...


>
>Yep. the following 2 lines of code
>@ECHO OFF
>ECHO ^G
>

>did not generate a sound. the box is Vista on a compaq presario 8000.
>hmm, are we at our wit's end?

I use XP.

The text editors that I have wouldn't accept Ctrl-g as such. They either
didn't take it at all or they thought it was a menu item.

One method did work as follows (in a prompt command window):

copy con filename (pick your own filename).
@echo off
Ctrl-g
Ctrl-z (this ends the input and saves the file)

It generates the beep but displays a "phony" error message.

Jack

billious

unread,
Jan 15, 2010, 7:12:47 PM1/15/10
to

In batch work, the only text editor worth considering is EDIT because you
can be certain that it's installed.

Ctrl-p Ctrl-g

works in EDIT to insert a control-g (BEL) character.

You don't say what 'phony' message your routine generates.
If you were to remove the "@echo off" line then you could execute

TYPE filename

to 'display' the Control-G

OR you can simply insert a control-g character into an ECHOed string or SET
a varname using EDIT keysequence ctrl-p ctrl-g.

If you use another editor that's incapable of dealing with such concepts,
really it's your funeral.


jya...@peoplepc.com

unread,
Jan 16, 2010, 9:38:04 AM1/16/10
to

>You don't say what 'phony' message your routine generates.
>If you were to remove the "@echo off" line then you could execute
>
===========================

This is the message displayed:

'' is not recognized as an internal or external command,
operable program or batch file.

Message has been deleted
Message has been deleted

Timo Salmi

unread,
Jan 16, 2010, 3:17:37 PM1/16/10
to
On 13.01.2010 19:03 Don84 wrote:
> I have another question, how could we make the PC beep twice with its
> internal speaker with either XP, Vista or Windows 7?

92} How do I play a sound or a tune from the command line?
http://www.netikka.net/tsneti/info/tscmd092.htm

All the best, Timo

--
Prof. Timo Salmi mailto:t...@uwasa.fi ftp & http://garbo.uwasa.fi/
Hpage: http://www.uwasa.fi/laskentatoimi/english/personnel/salmitimo/
Department of Accounting and Finance, University of Vaasa, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.htm

jya...@peoplepc.com

unread,
Jan 17, 2010, 11:08:19 AM1/17/10
to
On Sat, 16 Jan 2010 08:54:26 -0600, Guy
<Use-Reply-To-Address-Header@[127.1]> wrote:

>jyazelz wrote:

>In your "copy con" method...
>
>@echo (NO OFF) AND Ctrl-G should be on the same line...
>
> $ copy con beepr.bat
> @echo ^G
> ^Z
> 1 file(s) copied.
> $ beepr
>
=============================

Very good. Thanks.

Jack

0 new messages