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

你可能感兴趣的:(java编程)