Jump to content
Sign in to follow this  
AceLoc

Controlsend .. wtf ..

Recommended Posts

$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]

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...