// dos
public static void openWinExe() {
Runtime rn = Runtime.getRuntime();
Process p = null;
try {
String command = "calc";
p = rn.exec(command);
} catch (Exception e) {
e.printStackTrace() ;
}
}
// call pro
public static void openMyExe() {
Runtime rn = Runtime.getRuntime();
Process p = null;
try {
p = rn.exec("\"e:/qq.exe\"");
} catch (Exception e) {
e.printStackTrace() ;
}
}
}
调用exe File
最新推荐文章于 2021-03-26 23:26:10 发布