public class transferExe {
public static void main(String[] args) {
openWinExe();
openExe();
}
//用Java調用windows系統的exe文件
public static void openWinExe() {
Runtime rn = Runtime
Process p = null;
try {
String command =
p = rn
} catch (Exception e) {
System
}
}
//調用其他的可執行文件
public static void openExe() {
Runtime rn = Runtime
Process p = null;
try {
p = rn
} catch (Exception e) {
System
}
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26493.html