摘要: private void Restart() { Thread thtmp = new Thread(new ParameterizedThreadStart(run)); object appName = Application.ExecutablePath; Thread.Sleep(2000); thtmp.Start(appName); } private void run(Object obj) { Process ps = new Process(); ps.StartInfo.FileName = obj.ToString(); ps.Start(); } /// /// 设置 阅读全文
posted @ 2010-07-02 20:38 deepwishly 阅读(195) 评论(0) 推荐(0) 编辑