Runtime run = new Runtime.getRuntime();

Process p = run.exec("notepad.exe F:\\lesson\\a.java"); //启动进程

Thread.sleep(5000);  //5s后关闭

p.destroy();

相关文章:

  • 2021-06-25
  • 2021-07-23
  • 2021-12-15
  • 2021-06-29
  • 2021-06-02
  • 2021-04-02
  • 2022-01-30
  • 2022-12-23
猜你喜欢
  • 2021-11-12
  • 2021-08-29
  • 2021-05-15
  • 2021-11-11
  • 2021-12-21
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案