how can i shut down my LAN? any idea
-
Wondering how to disconnect my LAN through C#... though there is a way through WMI but any alternate and better solution would be appreciated ;) thanks Determination and faith are the only keys !
-
Wondering how to disconnect my LAN through C#... though there is a way through WMI but any alternate and better solution would be appreciated ;) thanks Determination and faith are the only keys !
There is no keyword in C# or class/method in the .NET framework to directly achieve this. You may have to build your own, probably by using the System.Management [^] namespace in the framework, since there is way through WMI.
----- If atheism is a religion, then not collecting stamps is a hobby. -- Unknown God is the only being who, to rule, does not need to exist. -- Charles Baudelaire
-
There is no keyword in C# or class/method in the .NET framework to directly achieve this. You may have to build your own, probably by using the System.Management [^] namespace in the framework, since there is way through WMI.
----- If atheism is a religion, then not collecting stamps is a hobby. -- Unknown God is the only being who, to rule, does not need to exist. -- Charles Baudelaire
thanks for taking interest :) The problem is, through system.management, i can only get the status of whether the Network Card is enabled or Disabled. The solution is only if the DHCP gets unleased, but thats not the right way i guess. What I want to do is to achieve the Disabling Network Card as i use to do by going in Network connection and disabling it through right click and selecting the particular option "Disable" Any idea how to do that ?
Determination and faith are the only keys !
-
Wondering how to disconnect my LAN through C#... though there is a way through WMI but any alternate and better solution would be appreciated ;) thanks Determination and faith are the only keys !
There are a few ways you can do this, below is the easiest method with a WMI script converted to C#; http://channel9.msdn.com/ShowPost.aspx?PostID=158556[^] If you download his application (the [Save] link at the bottom of the top post) he included the source code...
-
There are a few ways you can do this, below is the easiest method with a WMI script converted to C#; http://channel9.msdn.com/ShowPost.aspx?PostID=158556[^] If you download his application (the [Save] link at the bottom of the top post) he included the source code...
thanks for the reference :)
Determination and faith are the only keys !