在代码中静态编写的命令有效:
Runtime rt = Runtime.getRuntime();
String cmdUpdt = "D:\\Root\\Draft_Update.exe -se_file=\""F:\\TCC\\Stage\\DC\\Ude34edacx34c1f34\\M08521.dft\"" -input_file=F:\\TCC\\Stage\\DC\\Ude34edacx34c1f34\\result\\SEAttributeFile_M08521.txt -log_file=F:\\TCC\\Stage\\DC\\Ude34edacx34c1f34\\result\\SEAttributeFile_M08521.log"
rt.exec(cmdUpdt);
动态获得的同一命令不起作用:
Runtime rt = Runtime.getRuntime();
String cmdUpdt = Constants.moduleFolder+Constants.DraftUpdateEXE + " -se_file=\""+seFile+"\" -input_file="+inputFile+" -log_file="+logFile;
rt.exec(cmdUpdt);