代码如下:
String path = "C:/Documents and Settings/Giles/桌面/报表_20040504.xls";
try {
Runtime.getRuntime().exec("cmd /c start excel /"" + path + "/"");
} catch (IOException e) {
e.printStackTrace();
}
代码如下:
String path = "C:/Documents and Settings/Giles/桌面/报表_20040504.xls";
try {
Runtime.getRuntime().exec("cmd /c start excel /"" + path + "/"");
} catch (IOException e) {
e.printStackTrace();
}