回复: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;
}