陈好好 发表于 2013-2-3 10:30:44

Java调用DOS打开文件

Runtime runtime = Runtime.getRuntime();
runtime.exec("cmd   /c   start   " + "\"" + "\" " + "\"" + path + "\"");
防止文件名中有空格
页: [1]
查看完整版本: Java调用DOS打开文件