Info Posted August 23, 2007 Share Posted August 23, 2007 I searched in help file and didn't find... So I was wondering if there's a command the shut down the connection to the internet... I tried: _RunDos ( "Ip config/ release") and it didn't work... Link to comment Share on other sites More sharing options...
weaponx Posted August 23, 2007 Share Posted August 23, 2007 This post looks very familiar. Title: Shutdown internet...http://www.autoitscript.com/forum/index.php?showtopic=50783The "internet" is a global entity consisting of millions of networked devices, shutting "it" down with AutoIT may prove difficult Link to comment Share on other sites More sharing options...
DjDeep00 Posted August 23, 2007 Share Posted August 23, 2007 I searched in help file and didn't find... So I was wondering if there's a command the shut down the connection to the internet... I tried: _RunDos ( "Ip config/ release") and it didn't work... The following function will totally cut off the internet connection.....thanx to "Wus" expandcollapse popupFunc NicToggle($Toggle, $sConnectionName = "Local Area Connection", $sNetworkFolder = "Network Connections") $ssfCONTROLS = 3 $sEnableVerb = "En&able" $sDisableVerb = "Disa&ble" $shellApp = ObjCreate("shell.application") $oControlPanel = $shellApp.Namespace ($ssfCONTROLS) $oNetConnections = "nothing" For $folderitem In $oControlPanel.items If $folderitem.name = $sNetworkFolder Then $oNetConnections = $folderitem.getfolder ExitLoop EndIf Next If $oNetConnections = "nothing" Then MsgBox(48, "Error", "Couldn't find " & $sNetworkFolder & " folder") Exit EndIf $oLanConnection = "nothing" For $folderitem In $oNetConnections.items If StringLower($folderitem.name) = StringLower($sConnectionName) Then $oLanConnection = $folderitem ExitLoop EndIf Next If $oLanConnection = "nothing" Then MsgBox(48, "Error", "Couldn't find '" & $sConnectionName & "' item") Exit EndIf $bEnabled = True $oEnableVerb = "nothing" $oDisableVerb = "nothing" $s = "Verbs: " & @CRLF For $verb In $oLanConnection.verbs $s = $s & @CRLF & $verb.name ;enables If $verb.name = $sEnableVerb And $Toggle = 1 Then $oEnableVerb = $verb $oEnableVerb.DoIt ExitLoop ;disables ElseIf $verb.name = $sDisableVerb And $Toggle = 0 Then $oDisableVerb = $verb $oDisableVerb.DoIt ExitLoop Else MsgBox(48, "Error", "Tried to disable when already disabled" & @CRLF & "or enable when already enabled") Exit EndIf Next Sleep(1000) EndFunc ;==>NicToggle Link to comment Share on other sites More sharing options...
bluebearr Posted August 23, 2007 Share Posted August 23, 2007 Check out this page:Microsoft KB262265I used netsh to disable a network connection by setting it to an invalid static IP address. I don't have the script handy, though. BlueBearrOddly enough, this is what I do for fun. Link to comment Share on other sites More sharing options...
Fossil Rock Posted August 23, 2007 Share Posted August 23, 2007 The "internet" is a global entity consisting of millions of networked devices, shutting "it" down with AutoIT may prove difficultAnd, if successful, will make it very problematic for accessing the Autoit forums ..... not a good idea. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
jaenster Posted August 23, 2007 Share Posted August 23, 2007 why the fuck you want to shut down the fucking internetzor? -jaenster 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