Starstar Posted April 20, 2013 Posted April 20, 2013 (edited) I want to disconnect a WAN Miniport(PPPoE) i do not know about any methode in autoit that can do it.Therefore i decide do it via cmd. $DELAY = 250 Run("CMD") Sleep(500) Send("rasdial BSNL /disconnect"); BSNL is the name of PPPoE Connection Sleep($DELAY) Send("{Enter}") Sleep($DELAY) Send("Exit") Sleep($DELAY) Send("{Enter}") There is no way to use ControlSend. because When someone change operating drive. cmd title will also changed for example ("C:\Windows\System32\cmd.exe") If drive changed ("D:Windowssystem32cmd.exe") Windows tittle is changed. Edited April 20, 2013 by adnanbaloch Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."
Neutro Posted April 20, 2013 Posted April 20, 2013 (edited) Hey, Is run("rasdial BSNL /disconnect") not working? Edited April 20, 2013 by Neutro Identify active network connections and change DNS server - Easily export Windows network settings Clean temporary files from Windows users profiles directories - List Active Directory Groups members Export content of an Outlook mailbox to a PST file - File patch manager - IRC chat connect example Thanks again for your help Water!
Starstar Posted April 20, 2013 Author Posted April 20, 2013 (edited) thanks Neutro.......This is a very good idea..... Edited April 20, 2013 by adnanbaloch Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."
Starstar Posted April 20, 2013 Author Posted April 20, 2013 (edited) not tested $PPPoE_Name = "BSNL" Run("rasdial "&$PPPoE_Name&" /disconnect") Edited April 20, 2013 by adnanbaloch Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."
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