c#重启wpf或win程序

//重启程序
string strAppFileName = Process.GetCurrentProcess().MainModule.FileName;
Process myNewProcess = new Process();
myNewProcess.StartInfo.FileName = strAppFileName;
myNewProcess.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
myNewProcess.Start();

posted @ 2012-12-10 09:25  黎东海  阅读(1415)  评论(0编辑  收藏  举报