Quantcast
Channel: Windows XP Service Pack 3 (SP3) forum
Viewing all articles
Browse latest Browse all 2088

Uptime using SystemInfo | Find "Uptime" method for multiple computers.

$
0
0
Hey Scripting Guy,

Good day to you, my name is Krone and I got a question with regards to uptime script using the Windows SystemInfo method. Here's my simple script below.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

for /f %%i in (machinelist_selected.txt) do SystemInfo | Find "Up Time" %%i>>Out1.txt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

where: machinelist_selected.txt are the list of the machines to be queried
           out1.txt should be the output where the computers being queried should be recorded.

My problem is that  the script run successfully and generate an Out1.txt file on the path where the script is being saved however Out1.txt doesn't seem to provide any data recorded based on the query, in short Out1.txt is empty :(.

Is there any other pipe method that could display the output properly.

Also, I've no problem running the script using uptime.exe method, all works well. I'll just need to further validate and compare the results of the two methods.

Hoping for your favorable response.

-Krone-

Viewing all articles
Browse latest Browse all 2088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>