http://community.csdn.net/Expert/topic/3082/3082651.xml?temp=.1369898

解决方案 »

  1.   

    读取网卡等信息:
    public class NICid {
        public NICid() {
        }    public static void main(String[] args) {
    NICid nicid= new NICid();
    try {
        Process s = Runtime.getRuntime().exec(
    "c:\\windows\\system32\\ipconfig.exe /all");//注意这里是你的windows安装目录,也可以在这里判断windows的安装目录是winnt还是windows或其他
        InputStreamReader ir = new InputStreamReader(s.getInputStream());     LineNumberReader input = new LineNumberReader(ir);     String line;     while ( (line = input.readLine()) != null) { System.out.println("message is ------>" + line);     }
    }
    catch (IOException ex) {
        System.out.print(ex.getMessage());
    }
        }
    }
      

  2.   

    问题已经解决,谢谢thebear810611(小雄) 、wulemale(wulemale) 、pastelife(戴眼罩的驴) 你们的热心帮忙!我想另开帖送分!!