调用exe File
// dospublic static void openWinExe() { Runtime rn = Runtime.getRuntime(); Process p = null; try { String command = "calc"; p = rn.exec(command); } catch (Exception e) { e.printStackTrace() ; } }// call propublic static void openMyExe() { Runtime rn = Runtime.getRuntime(); Process p = null; try { p = rn.exec("\"e:/qq.exe\""); } catch (Exception e) { e.printStackTrace() ; } }}
页:
[1]