konan Posted September 30, 2004 Share Posted September 30, 2004 How to Disconnect and Connect the network? Link to comment Share on other sites More sharing options...
t0ddie Posted September 30, 2004 Share Posted September 30, 2004 well, what operating system? you could just make a script that goes to the control panel.. for most windows opsys and using the windowspy... point and click your way to success meaning, have the script disable it in the same fashion that you would normally do when you do it manually. Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
mlister Posted September 30, 2004 Share Posted September 30, 2004 (edited) DEVCON has the ability to enable/disable devices, such as network adapters.http://support.microsoft.com/default.aspx?...&NoWebContent=1Use the RUN command with @COMSPEC...... to execute Edited September 30, 2004 by mlister Link to comment Share on other sites More sharing options...
konan Posted September 30, 2004 Author Share Posted September 30, 2004 Thank you very much. Can you show me an example how to do that? Link to comment Share on other sites More sharing options...
mlister Posted September 30, 2004 Share Posted September 30, 2004 I haven't tested this, but I think you'll need the device hardwareID. This can be found under the device properties. $cmd = "devcon disable hardwareID" RunWait(@ComSpec & " /c " & $cmd, "C:\" , @SW_HIDE) obviously, you'll need to FileInstall() the devcon executable. Link to comment Share on other sites More sharing options...
konan Posted September 30, 2004 Author Share Posted September 30, 2004 I have know "Disable hardwareid" but i can't get my network id by using "devcon find *intel*" my network card is "intel pro/100ve" please show me how to find network id! thank you very much! Link to comment Share on other sites More sharing options...
mlister Posted September 30, 2004 Share Posted September 30, 2004 You have to go to device manager using control panel - then select the properties of the device. Then under the details tab choose the hardware ID from the combobox. On my adapter their are 4 entries, I used the command devcon disable *02081014 and it worked fine, (this was the last number of the longest string) Link to comment Share on other sites More sharing options...
konan Posted September 30, 2004 Author Share Posted September 30, 2004 Thank you for your help. I have resolve it successfully. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now