思路是利用WMI的Win32_NetworkAdapter里的那个Enable、Disable、Reset方法,但无一能用,在XP系统上都是提示方法找不到,求正解!

解决方案 »

  1.   

    System.Diagnostics.Process.Start("netsh", @"interface set interface name="1" admin=DISABLED");
    ---------------------------------------------------------------------------------
    http://bbs.crsite.cn
      

  2.   

    System.Diagnostics.Process.Start("netsh", @"interface set interface name="1" admin=DISABLED"); 这段代码是异步还是同步?在什么情况下会被支持?
      

  3.   

    netsh interface set interface name=1 admin=disabled
    运行该命令以后提示参数不对哦,进interface层执行也是一样,怎么搞的?