public static void ReLoign() { Application.ExitThread(); Thread thtmp = new Thread(new ParameterizedThreadStart(Run)); object appName = Application.ExecutablePath; Thread.Sleep(1); thtmp.Start(appName); } private static void Run(Object appName) { Process ps = new Process { StartInfo = new ProcessStartInfo{FileName = appName.ToString()} }; ps.Start(); } //账号切换 调用 ReLoign();