java API Runtime 启动进程
Runtime run = new Runtime.getRuntime();
Process p = run.exec("notepad.exe F:\\lesson\\a.java"); //启动进程
Thread.sleep(5000); //5s后关闭
p.destroy();
posted on 2013-11-30 12:56 weiguoyuan 阅读(278) 评论(0) 编辑 收藏 举报
Runtime run = new Runtime.getRuntime();
Process p = run.exec("notepad.exe F:\\lesson\\a.java"); //启动进程
Thread.sleep(5000); //5s后关闭
p.destroy();
posted on 2013-11-30 12:56 weiguoyuan 阅读(278) 评论(0) 编辑 收藏 举报