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?
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)
From the command line:
copy con mybeep.bat
@ECHO OFF
ECHO ^G
^Z
- Larry
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?
ok, getting better, it produced the the sound symbol at the prompt but
no sound.
Also, I pressed the Ctrl key for ^
Thanks.
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
Say again what problem you need a solution for?
- Larry
> 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
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
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!
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 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!
>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.
See this article:
http://support.microsoft.com/kb/310530
- Larry
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
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 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.
>See this article:
> http://support.microsoft.com/kb/310530
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
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...
Alt-*numpad* numeral(s)
- if it's a laptop you may need a further "Fn" key to be held as well
--
Nuns! Reverse!
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!
>>> 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.
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
> 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
>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
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.
This is the message displayed:
'' is not recognized as an internal or external command,
operable program or batch file.
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
>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