62,614
社区成员
发帖
与我相关
我的任务
分享
exec(String command)
在单独的进程中执行指定的字符串命令。
try {
Runtime.getRuntime().exec("cmd /c start D:\\TEST\\1.chm");
} catch (IOException e) {
e.printStackTrace();
}
try {
Runtime.getRuntime().exec("cmd /c start E:\\1.chm");
} catch (IOException e) {
e.printStackTrace();
}