process
processbuilder
如何正確的使用 Runtime.exec()Process process = null;
ProcessBuilder pb = new ProcessBuilder(Arrays.asList(params));
process = pb.start();
finally {
try {
if(process.isAlive()){
process.destroyForcibly();
}
} catch (Exception e) {
return false;
}
}
沒有留言:
張貼留言