dream_ait 发表于 2013-1-15 08:17:05

调用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]
查看完整版本: 调用exe File