java调用批处理后关闭窗口

调用

String cmd4 = ("cmd /c start ffmpegc.bat 参数 参数 参数...");
try {

  Runtime.getRuntime().exec(cmd4);
} catch (IOException e) {
       e.printStackTrace();

批处理文件内容

ffmpeg 参数 参数 参数....
exit

加个exit就可以在运行后退出了
posted @ 2011-07-09 10:53  将来的老大爷  阅读(539)  评论(0编辑  收藏  举报

如果本页面列出的内容侵犯了您的权益,请告知。
知识共享许可协议
996.icu