// Restart current process Method 1
System.Windows.Forms.Application.Restart();
Application.Current.Shutdown(); // Restart current process Method 2
System.Reflection.Assembly.GetEntryAssembly();
string startpath = System.IO.Directory.GetCurrentDirectory();
System.Diagnostics.Process.Start(startpath + “\\xxx.exe”);
Application.Current.Shutdown(); // Restart current process Method 3
Process p = new Process();
p.StartInfo.FileName = System.AppDomain.CurrentDomain.BaseDirectory + “xxx.exe”;
p.StartInfo.UseShellExecute = false;
p.Start();
Application.Current.Shutdown();

最新文章

  1. Java transient 关键字
  2. Cocos2d-x 3.X 事件分发机制
  3. 感知机的对偶形式——python3实现
  4. ubuntu 14.04 LTS 安装ss客户端
  5. [转]Android的Handler总结
  6. JSON返回的自定义
  7. IT全称
  8. redis 基本使用
  9. jsonp总结
  10. 【NOIP2016提高组】蚯蚓
  11. 获取redis主从复制链SHELL脚本
  12. three.js 使用DragControls.js 拖动元素
  13. APP压力稳定性测试之monkey入门
  14. 《Java大学教程》—第18章 高级图形编程
  15. redis(三)
  16. Qt编写自定义控件9-导航按钮控件
  17. 介绍一款jquery ui组件gijgo(含tree树状结构、grid表格),特点:简易、文档全清晰易懂、示例代码
  18. MySQL参数文件及参数修改方法
  19. python导入模块总结与分析
  20. Linux云主机 监控方案浅析

热门文章

  1. nopCommerce 3.9 接口笔记
  2. JAVA中String类的intern()方法的作用
  3. Dll注入技术之消息钩子
  4. nodebb中文社区
  5. android:layout_gravity和android:gravity属性的差别
  6. Light libraries是一组通用的C基础库,目标是为减少重复造轮子而写(全部用POSIX C实现)
  7. VS版本 与 .NET版本以及C#版本之间的关系
  8. Oracle主键(Primary Key)使用详细的说明
  9. Mac的GUI哲学
  10. Java10 新特性