1.通过java代码,调用bat、shell等脚本或者命令
1)使用Runtime的exec()方法,会返回一个用于管理操作系统进程的Process对象
Process process =null; process = Runtime.getRuntime().exec(command); process.waitFor();
posted on 2017-10-17 15:53 樱影空子 阅读(214) 评论(0) 编辑 收藏 举报