Skip to content

Instantly share code, notes, and snippets.

@rsato
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsato/9707353 to your computer and use it in GitHub Desktop.
Save rsato/9707353 to your computer and use it in GitHub Desktop.
PC98の起動音をC# とWindows PowerShellで
usage:
>C:\Windows\Microsoft.NET\Framework\v[version]\csc.exe [cs file]
example:
>C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc PC98Beep.cs
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
}
}
[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