摘要: 1 例子java调用批处理文件public class RunJarBat { public static void runJarBat() { // 调用控制台 Runtime rt = Runtime.getRuntime(); Process p = null; try { // 指定目录,两种方法1)exec中第三个参数 2)批处理文件中指定目录 p = rt.exec( "cmd /c start E:\\project\\regular\\... 阅读全文
posted @ 2013-09-02 21:07 空城夕 阅读(408) 评论(0) 推荐(0) 编辑