0
내 프로그램 stucks는 명령을 실행하는 동안. 우리는 심지어 진행하기 위해 지연 시간 제한을 추가 할 수 명령 줄에서 응답이없는 경우?. 간부는 (
try {
if (System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") != -1)
{
p = Runtime.getRuntime().exec("cmd.exe /C " + line);
int exitCode = p.waitFor();
}
else
{
p = Runtime.getRuntime().exec(line);
}