pcjunki Posted August 10, 2012 Posted August 10, 2012 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
jdelaney Posted August 10, 2012 Posted August 10, 2012 (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 August 10, 2012 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.
pcjunki Posted August 10, 2012 Author Posted August 10, 2012 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
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