Java编程打开运行exe程序

2014-11-24 07:17:19 · 作者: · 浏览: 0

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();
}


摘自 黑黑博客