摘要: Process[] p = Process.GetProcesses(); int processCount = 0; foreach (Process p1 in p) { if (p1.ProcessName.Trim() == "程序名") { processCount = processCount + 1; } } if (processCount > 1) { MessageBox.Show("程序已启动"); Application.Exit(); return; } 阅读全文
posted @ 2011-03-09 15:39 柠檬绿松 阅读(299) 评论(0) 推荐(0) 编辑
View Code