Keeping track of system uptimes

Acer / Travelmate 5730
April 19, 2009 at 06:32:39
Specs: Windows XP SP2, C2D T5870/2GB DDR2
Hi,

Is there anyway i could keep track of the number of hours i have been using my laptop? I know the command "systeminfo" shows system uptime along with lots of other details.
Is there anyway to run systeminfo extract the uptime and update a log each time the computer is shutdown?

thanks


See More: Keeping track of system uptimes

Report •


#1
April 19, 2009 at 07:20:23
Man would that ever be simple on a UNIX/Linux box!

You could create a batchfile that runs the systeminfo command and pipes it into a text file. You would of course have it run at shutdown.

From there you would extract the one line and put it into a log file. However, what command to use to extract that line I don't know. Hopefully someone with much better batchfile skills than me will help you out.

If it were UNIX the command would be something like:

grep "System Up Time" [name_of_text_file] >> [name_of_log_file]


Report •

#2
April 19, 2009 at 08:05:45
M$ also has its own uptime utility that remembers every uptime, shutdown & boot events for the last 30 days when you use the /s switch. No batch or pipe is needed. Go HERE for more info & download link.

i_Xp/VistaUser


Report •

#3
April 19, 2009 at 08:09:57
I forgot to add that MS uptime.exe is a command line tool that you can run from the command prompt.

i_Xp/VistaUser


Report •

Related Solutions

#4
April 19, 2009 at 08:25:49
hi,
thanks for responding,
i am looking for a way to keep track of the cumulative number of hours my pc has been used. uptime and systeminfo only provide the uptime since bootup...

help!


Report •

#5
April 19, 2009 at 12:07:28
Cumulative? You need to use a calculator to add up the time you spent on the PC between shutdown & reboot!

i_Xp/VistaUser


Report •

#6
April 19, 2009 at 12:17:38
Googling for “computer usage timer programs” produced the following. There were more hits.

http://www.tucows.com/preview/50971...


Report •

#7
April 19, 2009 at 17:52:03
Here's a freebe that might do the job...

http://www.softpedia.com/get/System...


-- kptech


Report •

#8
April 21, 2009 at 06:59:33
thanks for responding guys, iam using Uptime-Snooper.

thanks again :)


Report •


Ask Question