发布时间:2020-12-15 17:50 作者:独孤剑 阅读:140
static void Main(string[] args) { bool result; Mutex m = new Mutex(false, System.Reflection.Assembly.GetExecutingAssembly().FullName, out result); if (!result) { // 程序已经运行! return; } Console.WriteLine("运行..."); Console.Read(); }