Last active
August 29, 2015 13:57
-
-
Save rsato/9707353 to your computer and use it in GitHub Desktop.
PC98の起動音をC# とWindows PowerShellで
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage: | |
>C:\Windows\Microsoft.NET\Framework\v[version]\csc.exe [cs file] | |
example: | |
>C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc PC98Beep.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class PC98Beep | |
{ | |
public static void Main(string[] args) | |
{ | |
// Console.Beep(int frequency, int duration); | |
Console.Beep(2000, 120); // pi | |
Console.Beep(1000, 120); // po | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Console]::Beep(2000, 120) | |
[System.Console]::Beep(1000, 120) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment