回複:A Java Question

來源: 2005-01-25 13:59:18 [舊帖] [給我悄悄話] 本文已被閱讀:

static private void startProcess(String cmd) {
Runtime runtime = Runtime.getRuntime();

try {
Process p = runtime.exec(cmd, helpClasses);


try {
p.waitFor();
} catch ( java.lang.InterruptedException e2)
{
exitCode = CwConstant.NOT_YET_FINISHED;
}

} catch (java.io.IOException e) {}
return;
}