摘要: 运行代码执行exe,shell这样的程序或脚本再java中需: (1) 使用Runtime的exec()方法 (2) 使用ProcessBuilder的start()方法 Runtime和ProcessBulider提供了不同的方式来启动程序,设置启动参数、环境变量和工作目录。 但是这两种方法都会返 阅读全文
posted @ 2018-09-12 14:41 七千米蔚蓝 阅读(3921) 评论(0) 推荐(0) 编辑