Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - beep sound

Reply
 
Old 01-17-2008   #1 (permalink)
IT Staff
Guest


 
 

beep sound

is there a default beep sound from powershell i can called ?



My System SpecsSystem Spec
Old 01-17-2008   #2 (permalink)
Tom Moreau
Guest


 
 

Re: beep sound

Try:

Write-Host `a

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Toronto, ON Canada

"IT Staff" <jkklim@xxxxxx> wrote in message
news:eUcf2AYWIHA.3556@xxxxxx
is there a default beep sound from powershell i can called ?



My System SpecsSystem Spec
Old 01-17-2008   #3 (permalink)
Oisin Grehan [MVP]
Guest


 
 

Re: beep sound

On Jan 17, 10:12*pm, "IT Staff" <jkk...@xxxxxx> wrote:
Quote:

> is there a default beep sound from powershell i can called ?
Traditionally ASCII value 7 (BEL) is used to trigger a beep from a
host:

PS> [char]7

but the .NET way to do it is:

PS> [console]::Beep()

Hope this helps,

- Oisin
My System SpecsSystem Spec
Old 01-17-2008   #4 (permalink)
IT Staff
Guest


 
 

Re: beep sound

Is it possible to to continous beeping for x seconds using [console] class


"Oisin Grehan [MVP]" <oising@xxxxxx> wrote in message
news:55ac1d97-0e9e-4734-8aac-c0e7f6272329@xxxxxx
On Jan 17, 10:12 pm, "IT Staff" <jkk...@xxxxxx> wrote:
Quote:

> is there a default beep sound from powershell i can called ?
Traditionally ASCII value 7 (BEL) is used to trigger a beep from a
host:

PS> [char]7

but the .NET way to do it is:

PS> [console]::Beep()

Hope this helps,

- Oisin


My System SpecsSystem Spec
Old 01-18-2008   #5 (permalink)
Jacob Saaby Nielsen
Guest


 
 

Re: beep sound

Hey IT,

the only way I could find, is to do a for loop, to fire the beep event X
numbers of times, to create
a longer beep.

for ($i=0; $i -lt 10;$i++) {[console]::Beep()}

You don't really create one long beep, rather a series of beeps. But I checked
the MSDN documentation,
and nowhere is it listed that there's a "time" parameter for the beep function.

Best Regards,
Jacob Saaby Nielsen

http://www.pipforhelvede.net
gmail: jacob DOT saaby
hotmail (IM): same as gmail
Quote:

> Is it possible to to continous beeping for x seconds using [console]
> class
>
> "Oisin Grehan [MVP]" <oising@xxxxxx> wrote in message
> news:55ac1d97-0e9e-4734-8aac-c0e7f6272329@xxxxxx
> . On Jan 17, 10:12 pm, "IT Staff" <jkk...@xxxxxx> wrote:
>
Quote:

>> is there a default beep sound from powershell i can called ?
>>
> Traditionally ASCII value 7 (BEL) is used to trigger a beep from a
> host:
>
PS>> [char]7
PS>>
Quote:

> but the .NET way to do it is:
>
PS>> [console]::Beep()
PS>>
Quote:

> Hope this helps,
>
> - Oisin
>

My System SpecsSystem Spec
Old 01-18-2008   #6 (permalink)
Oisin Grehan [MVP]
Guest


 
 

Re: beep sound

On Jan 17, 10:51*pm, "IT Staff" <jkk...@xxxxxx> wrote:
Quote:

> Is it possible to to continous beeping for x seconds using [console] class
>
> "Oisin Grehan [MVP]" <ois...@xxxxxx> wrote in messagenews:55ac1d97-0e9e-4734-8aac-c0e7f6272329@xxxxxx
> On Jan 17, 10:12 pm, "IT Staff" <jkk...@xxxxxx> wrote:
>
Quote:

> > is there a default beep sound from powershell i can called ?
>
> Traditionally ASCII value 7 (BEL) is used to trigger a beep from a
> host:
>
> PS> [char]7
>
> but the .NET way to do it is:
>
> PS> [console]::Beep()
>
> Hope this helps,
>
> - Oisin
Hi,

Use: [console]::beep($frequency, $duration)

- Oisin

My System SpecsSystem Spec
Old 01-18-2008   #7 (permalink)
Jacob Saaby Nielsen
Guest


 
 

Re: beep sound

Hey Oisin,

hrmpf, I had to look at Beep Method, not Beep Function

Parameters
frequency
Type: System..::.Int32

The frequency of the beep, ranging from 37 to 32767 hertz.

duration
Type: System..::.Int32

The duration of the beep measured in milliseconds.

Best Regards,
Jacob Saaby Nielsen

http://www.pipforhelvede.net
gmail: jacob DOT saaby
hotmail (IM/LinkedIN/Facebook): same as gmail
Quote:

> On Jan 17, 10:51 pm, "IT Staff" <jkk...@xxxxxx> wrote:
>
Quote:

>> Is it possible to to continous beeping for x seconds using [console]
>> class
>>
>> "Oisin Grehan [MVP]" <ois...@xxxxxx> wrote in
>> messagenews:55ac1d97-0e9e-4734-8aac-c0e7f6272329@xxxxxx
>> ps.com...
>>
>> On Jan 17, 10:12 pm, "IT Staff" <jkk...@xxxxxx> wrote:
>>
Quote:

>>> is there a default beep sound from powershell i can called ?
>>>
>> Traditionally ASCII value 7 (BEL) is used to trigger a beep from a
>> host:
>>
>> PS> [char]7
>>
>> but the .NET way to do it is:
>>
>> PS> [console]::Beep()
>>
>> Hope this helps,
>>
>> - Oisin
>>
> Hi,
>
> Use: [console]::beep($frequency, $duration)
>
> - Oisin
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Beep sound is gone! Sound & Audio
Annoying beep Vista General
beep-beep Vista performance & maintenance
Beep? Vista General
How to disable the warning beep sound Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46