Runtime time =Runtime.getRuntime();
File file = new File("D:\\Dev\\2 2");//此处是代表文件所在的目录
try {
time.exec(new String[]{"cmd","/c","start","\" \"","BC CompareReport(aaazwb 1.0.0;0-U1.1.0;0).xls"}, null, file);
} catch (IOException e) {
e.printStackTrace();
}
转载于:https://blog.51cto.com/zwbjava/1157068