in reply to Using OLE to enable/disable network adapters in Windows

Why don't you use plain cmd command (for examplel via system):

netsh interface set interface <interface name> DISABLED

Replies are listed 'Best First'.
Re^2: Using OLE to enable/disable network adapters in Windows
by teryx510 (Novice) on Oct 02, 2009 at 16:17 UTC

    Hi Gangabass, Thanks for the reply. I looked at using netsh to do the job but was unable to get it to work as I'm using WinXP.

        Hi Sinistral, Sorry I should have been more verbose in my reply to Gangabass. I tried using netsh but I don't think that it works reliably, or in my case at all, when trying to enable/disable network adapters in Windows XP.
        http://support.microsoft.com/kb/262265