我有代码:
String[] cmd = {"cmd",
"/C",
"C:\\Program Files\\Microsoft Office\\Office12\\WINWORD.exe",
"/mOpenPage",
"C:\\Users\\Admin\\Documents\\QuanLyBaiGiang\\Lop 6\\Abc.doc"};
Process proc = Runtime.getRuntime().exec(cmd);
不运行但 "\Lop6" ==> 运行良好!你可以修复错误 "\Lop 6\" ==> 运行