String path = "D:\\apache-tomcat-7035\\bin\\startupbat";
Runtime run = RuntimegetRuntime();
try {
// runexec("cmd /k shutdown -s -t 3600");
Process process = runexec("cmdexe /k start " + path);
InputStream in = processgetInputStream();
while (inread() != -1) {
Systemoutprintln(inread());
}
inclose();
processwaitFor();
} catch (Exception e) {
eprintStackTrace();
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)