Java编程打开运行exe程序

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

posted @ 2014-09-30 06:58  u0mo5  阅读(318)  评论(0编辑  收藏  举报