PowerShell/Scripts/play-happy-birthday.ps1

43 lines
1.3 KiB
PowerShell
Raw Normal View History

2021-09-27 10:38:12 +02:00
<#
2021-08-16 17:15:31 +02:00
.SYNOPSIS
2021-09-24 17:19:49 +02:00
Plays the Happy Birthday song
2021-10-04 21:29:23 +02:00
.DESCRIPTION
2021-10-07 11:30:20 +02:00
This script plays the well-known Happy Birthday song.
2021-08-16 17:15:31 +02:00
.EXAMPLE
2021-09-24 17:19:49 +02:00
PS> ./play-happy-birthday
2021-10-07 11:30:20 +02:00
(listen and enjoy)
2021-08-29 17:50:03 +02:00
.NOTES
Author: Markus Fleschutz · License: CC0
2021-08-16 17:15:31 +02:00
.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)
2021-09-27 10:09:45 +02:00
exit 0 # success