Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How can i send a Command to "cmd"

$
0
0
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.
[ autoit ]      
$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:\Windows\system32\cmd.exe") Windows tittle is changed.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>