标签:nbsp str ring public time() proc ati oid exec
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(); } }
标签:nbsp str ring public time() proc ati oid exec
原文地址:http://www.cnblogs.com/achengmu/p/6250545.html