java调用Bat cmd命令和Linux Shell,并获取执行中的输出(字符乱码问题解决)
java调用windows Bat或者Linux Shell,并获取执行中的输出(解决了字符乱码问题)
String strCmd = "dir"; // bat
//String strCmd = "ls"; // shell
Process process;
BufferedReader input;
try {
if (SYstem.getProperties()....
原创
2019-01-16 09:53:42 ·
803 阅读 ·
0 评论