比如在C盘下有个test.bat文件:
public static void main(String[] args) {
try {
Runtime.getRuntime().exec("cmd /c start c://test");
} catch (IOException e) {
e.printStackTrace();
}
}
比如在C盘下有个test.bat文件:
public static void main(String[] args) {
try {
Runtime.getRuntime().exec("cmd /c start c://test");
} catch (IOException e) {
e.printStackTrace();
}
}
819

被折叠的 条评论
为什么被折叠?