AceLoc Posted September 24, 2006 Share Posted September 24, 2006 $cmd = (@SystemDir & "/cmd.exe") Run($cmd) WinWaitActive($cmd) ControlSend($cmd, "", "", "Netstat{ENTER}") WinWaitActive($cmd) ControlSend($cmd, "", "", "Netstat -n{ENTER}") WinWaitActive($cmd) i also tried $cmd = "C:\WINDOWS\system32\cmd.exe" but that dont work on every computer ... any idea's? Thanks! [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
NELyon Posted September 24, 2006 Share Posted September 24, 2006 Why not use the _RunDOS and get the Stdout? Link to comment Share on other sites More sharing options...
AceLoc Posted September 24, 2006 Author Share Posted September 24, 2006 well.. because i use this.. thanks for helping anyways this will run it i guess but HIDED: $cmd = (@WindowsDir & "/system32" & "/cmd.exe") Run($cmd) WinWaitActive($cmd) ControlSend($cmd, "", "", "Netstat{ENTER}") WinWaitActive($cmd) ControlSend($cmd, "", "", "Netstat -n{ENTER}") WinWaitActive($cmd) anyway to show this? *-) [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AceLoc Posted September 24, 2006 Author Share Posted September 24, 2006 FIXED:Opt("WinTitleMatchMode", 2) $cmd = ("cmd.exe") Run($cmd) WinWaitActive($cmd) ControlSend($cmd, "", "", "Netstat{ENTER}") WinWaitActive($cmd) ControlSend($cmd, "", "", "Netstat -n{ENTER}") WinWaitActive($cmd) [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AzKay Posted September 24, 2006 Share Posted September 24, 2006 What the hell, I told you how to do it on msn like 3 times already. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AceLoc Posted September 24, 2006 Author Share Posted September 24, 2006 (edited) What the hell, I told you how to do it on msn like 3 times already.you where talking about _RunDOSand you also forgot " Opt("WinTitleMatchMode", 2) " Edited September 24, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
AzKay Posted September 24, 2006 Share Posted September 24, 2006 you where talking about _RunDOSand you also forgot " Opt("WinTitleMatchMode", 2) " I did not say _RunDos, And it didnt need WinTitleMatchMode. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
AceLoc Posted September 24, 2006 Author Share Posted September 24, 2006 yy it works now shhhhhh [quote name='AceLoc']I gots new sunglasses there cool.[/quote] 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