java: Runtime和Process调用本机程序
调用纸牌程序,Process用来销毁程序
import java.io.IOException;
public class RunTimeDemo {
public static void main(String args[]) throws Exception
{
Runtime rt = Runtime.getRuntime();
Process pro = rt.exec("freecell.exe");
Thread.sleep(2000);
pro.destroy();
}
}
原文:http://www.cnblogs.com/achengmu/p/6250545.html