package com.lj.test; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class FFMpeg { public static void main(String[] args) throws IOException { List<String> command=new ArrayList<String>(); command.add("ipconfig"); command.add("/all"); Process process=new ProcessBuilder(command).start(); InputStream in=process.getInputStream(); int b=0; StringBuffer sb=new StringBuffer(); BufferedReader br=new BufferedReader(new InputStreamReader(in,"gbk")); String str=""; while((str=br.readLine())!=null){ System.out.println(str); } } }
0票
开心
0票
板砖
0票
感动
0票
有用
0票
疑问
0票
难过
0票
无聊
0票
震惊
顶
踩