import java.io.IOException;
/**
* @author Administrator
*/
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
try {
Runtime runtime = Runtime.getRuntime();
String path = "C:\\Documents and Settings\\Administrator\\桌面\\tyl\\test.xlsx";
runtime.exec("cmd /c start &&\"" + path + "\" ");
// runtime.exec("cmd /c start exit &&\"" + path + "\" "); //关闭dos窗口
} catch (IOException e) {
e.printStackTrace();
}
}
}