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
>