gcue Posted August 30, 2008 Share Posted August 30, 2008 im using netsvc which can query services on a remote pc. currently my script runs the software to query a service on remote machines and pipe the outs to a text file i then use fileread and stringtrim to get the information i need HOKY i know!! can anyone think of a more creative way of doing this? $file = ("c:\temp\ut.txt") RunWait(@ComSpec & ' /c netsvc "client32" \\' & GUICtrlRead($asset) & ' /query >' & $file) $line = FileReadLine($file, 1) $uptime = StringTrimLeft($line,11) $uptime2 = StringTrimRight($uptime,14) If $uptime2="pending start" Then Link to comment Share on other sites More sharing options...
herewasplato Posted August 30, 2008 Share Posted August 30, 2008 Maybe StdoutRead. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
gcue Posted August 31, 2008 Author Share Posted August 31, 2008 a very interesting function.... thanks!!!!!!!!! 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