java用Runtime打开word文档
通过Runtime打开word文档
例如:ExportReport.getFileName() = “2016-11-17 111345”;
直接写Runtime.getRuntime().exec("cmd /c \"F:\\Exception Reports\\"+“2016-11-17 111345”+".doc\"")是可以打开word文档的,但是写成
Runtime.getRuntime().exec("cmd /c \"F:\\Exception Reports\\"+ExportReport.getFileName()+".doc\"")就没反应了这是为什么?