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();
}
时间: 2024-10-11 00:18:39
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();
}