passer1991

2012年12月11日

java怎么样判断一个进程是否已近结束

摘要: 以记事本程序为例Process p = Runtime.getRuntime().exec("notepad.exe");try { p.waitFor();//等待notepad.exe的结束}catch(InterruptedException ex) { System.err.println("ERROR"); System.exit(1);}//继续自己的程序参见http://zhidao.baidu.com/question/100219452.html 阅读全文

posted @ 2012-12-11 11:19 passer1991 阅读(970) 评论(0) 推荐(0) 编辑

导航