用Java调用doc执行程序
public class TestRunTime {
public static void main(String []args){
//我的Q装在D盘
String str="D:\Program Files\Tencent\QQ\Bin\QQ.exe";
try {
Process p=Runtime.getRuntime().exec(str);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
补充:软件开发 , Java ,