Jump to content
Sign in to follow this  
AceLoc

Controlsend .. wtf ..

Recommended Posts

AceLoc

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

Why not use the _RunDOS and get the Stdout?

Share this post


Link to post
Share on other sites
AceLoc

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
AzKay

What the hell, I told you how to do it on msn like 3 times already.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
AceLoc

What the hell, I told you how to do it on msn like 3 times already.

you where talking about _RunDOS

and you also forgot " Opt("WinTitleMatchMode", 2) " :)

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites
AzKay

you where talking about _RunDOS

and you also forgot " Opt("WinTitleMatchMode", 2) " :)

I did not say _RunDos, And it didnt need WinTitleMatchMode.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
AceLoc

yy it works now shhhhhh


[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  

×