Jump to content

How to Disconnect and Connect the network?


konan
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...