2013年10月30日

【Java】使用Runtime执行其他程序

摘要: 1 public class ExecDemo{ 2 public static void main(String[] args) { 3 Runtime r = Runtime.getRuntime(); 4 Process p = null; 5 try { 6 p = r.exec("notepad"); 7 //p=Runtime.getRuntime().exec("cmd /c start D://2.doc"); 8 Thr... 阅读全文

posted @ 2013-10-30 09:32 Allen Blue 阅读(236) 评论(0) 推荐(0) 编辑

导航