Java編程打開運行exe程序 – JAVA編程語言程序開發技術文章

String path = "notepad.exe"; //(C:\Program Files\Tencent\QQ\Bin\qq.exe)

try {
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(path);

} catch (IOException e) {
e.printStackTrace();
}

 

摘自 黑黑博客

發佈留言