public static bool IsAlreayRunning() { string currentProcessName = Process.GetCurrentProcess().ProcessName; Process[] processNamesCoolection = Process.GetProcessesByName(currentProcessName); if (processNamesCoolection.Length > 1) { return true; } else { return false; }
}
文章标题网站制作中,.NET程序设计时判断实行状况