由于Java 9类
Process具有新方法long pid(),因此它很简单
ProcessBuilder pb = new ProcessBuilder("cmd", "/c", "path");try { Process p = pb.start(); long pid = p.pid(); } catch (IOException ex) { // ...}
欢迎分享,转载请注明来源:内存溢出
由于Java 9类
Process具有新方法long pid(),因此它很简单
ProcessBuilder pb = new ProcessBuilder("cmd", "/c", "path");try { Process p = pb.start(); long pid = p.pid(); } catch (IOException ex) { // ...}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)