Sign in to follow this  
Followers 0
pcjunki

remote tasklist

4 posts in this topic

i'm trying to do a remote tasklist

i have some code working, it connects to the pc, shows the running tasks

but then flashes away

how do i make the cmd on my pc stay up?

here is my code

Func tasklist($pc)
Run(@ComSpec & " /c tasklist /s " & $pc)
EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

in the run command, print out to a file, and then read the data out of that document.

Run(@ComSpec & " /c tasklist /s " & $pc & " 1>&2 yourDirAndFile.txt")

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

i changed the /c to a /k and it works

Share this post


Link to post
Share on other sites

is there anyway to set the title of the cmd?

i want to set the title "tasklist $pc"

like....

Func tasklist($pc)
Run(@ComSpec & " /k title tasklist " & $pc)
Run(@ComSpec & " /k tasklist /s " & $pc)
EndFunc

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  
Followers 0