using System.Diagnostics;
// アプリケーションのプロセス名を取得
string thisProcessName = Process.GetCurrentProcess().ProcessName;
// すでに起動している場合
if (Process.GetProcessesByName(thisProcessName).Length > 1)
{
// アプリケーションを終了する
return;
}
0 件のコメント:
コメントを投稿