mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-29 10:09:37 +01:00
43 lines
1.3 KiB
PowerShell
43 lines
1.3 KiB
PowerShell
<#
|
|
.SYNOPSIS
|
|
Plays the Happy Birthday song
|
|
.DESCRIPTION
|
|
This script plays the well-known Happy Birthday song.
|
|
.EXAMPLE
|
|
PS> ./play-happy-birthday
|
|
(listen and enjoy)
|
|
.NOTES
|
|
Author: Markus Fleschutz · License: CC0
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
#>
|
|
|
|
[System.Console]::Beep(1059.274, 300)
|
|
[System.Console]::Beep(1059.274, 200)
|
|
[System.Console]::Beep(1188.995, 500)
|
|
[System.Console]::Beep(1059.274, 500)
|
|
[System.Console]::Beep(1413.961, 500)
|
|
[System.Console]::Beep(1334.601, 950)
|
|
|
|
[System.Console]::Beep(1059.274, 300)
|
|
[System.Console]::Beep(1059.274, 200)
|
|
[System.Console]::Beep(1188.995, 500)
|
|
[System.Console]::Beep(1059.274, 500)
|
|
[System.Console]::Beep(1587.117, 500)
|
|
[System.Console]::Beep(1413.961, 950)
|
|
|
|
[System.Console]::Beep(1059.274, 300)
|
|
[System.Console]::Beep(1059.274, 200)
|
|
[System.Console]::Beep(2118.547, 500)
|
|
[System.Console]::Beep(1781.479, 500)
|
|
[System.Console]::Beep(1413.961, 500)
|
|
[System.Console]::Beep(1334.601, 500)
|
|
[System.Console]::Beep(1188.995, 500)
|
|
[System.Console]::Beep(1887.411, 300)
|
|
[System.Console]::Beep(1887.411, 200)
|
|
[System.Console]::Beep(1781.479, 500)
|
|
[System.Console]::Beep(1413.961, 500)
|
|
[System.Console]::Beep(1587.117, 500)
|
|
[System.Console]::Beep(1413.961, 900)
|
|
exit 0 # success
|