以记事本程序为例
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

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2022-01-03
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-05-26
  • 2021-04-06
  • 2021-06-25
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案