美文网首页
Java调用cmd 传参

Java调用cmd 传参

作者: c747190cc2f5 | 来源:发表于2019-05-10 10:31 被阅读0次

网上有说传一个数组给run.exec(),试了下不管用,又查到直接把参数加载exe后面就可以,下面的是调用render.exe输出png

 Runtime run = Runtime.getRuntime();
 run.exec("D:/swfrender.exe"  + "  123.swf  -o "  + ".png");
参考文章

http://blog.sina.com.cn/s/blog_5f1e7b340100ypqx.html

相关文章

网友评论

      本文标题:Java调用cmd 传参

      本文链接:https://www.haomeiwen.com/subject/pxuooqtx.html