/**
* 調系統命令
*/
try {
Process process = Runtime.getRuntime().exec("ipconfig");
Scanner scanner = new Scanner(process.getInputStream(),"gbk");
while (scanner.hasNextLine()){
String str = scanner.nextLine();
System.out.println(str);
}
scanner.close();
} catch (IOException e) {
e.printStackTrace();
}