62,621
社区成员
发帖
与我相关
我的任务
分享
……
Runtime rt = Runtime.getRuntime(); //获取系统当前运行时对象
Process p = null; //创建一个进程
try{
//p=rt.exec("\"D:/AnyQ/AnyQ.exe\"");
p = rt.exec( 这里我该怎么写呢 );
}catch(Exception e){
System.out.println("Error exec AnyQ");
}
……
Runtime runtime = Runtime.getRuntime();
try
{
runtime.exec("WinRAR x D:\\data.zip *.txt D:\\");
}
catch (IOException e)
{
e.printStackTrace();
}