Getting system uptime on Windows



Does anyone know of a way to find the system uptime or the time of the
last boot on Windows?

With TWAPI, I can get the time that different users logged on. I´ve
also found a registry key that stores the time of the last system
shutdown. But still I can´t find any way to get the system uptime.

I can parse the time from the output of the following system commands,
but running these commands with [exec] gives no return value, so I
can´t access the output within Tcl:
net statistics workstation
net statistics server


Now I´m trying to do it by reading the Windows event log through
TWAPI, but still no luck.

Any ideas? Thanks in advance.


Paul

.



Relevant Pages

  • Re: systeminfo.exe
    ... Ramesh, Microsoft MVP ... Uptime Reliability and Availability Information Tool: [Microsoft Windows NT ... > Now when I run the command it always says the system uptime is "N/A". ...
    (microsoft.public.windowsxp.general)
  • Re: MS "UPTIME" ??? Like the UNIX command ???
    ... There's a little utility from Doug Knox web site called system uptime. ... NET STATISTICS WORKSTATION ... Scroll back UP to>> Statistics since... ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.basics)
  • Re: system uptime
    ... When Windows has gathered the data, the System Uptime can be found near the ... MS-MVP Windows Shell/User ... > I use NEWT Freeware which works great over a network and gives other info ... > (I think Norton Utilities has something too, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: XP System Uptime
    ... > Is there somewhere in Windows XP to determine the system uptime ... > besides System Idle Process in Task Manager? ... > In Windows 98SE this information was in System Information but it's ...
    (microsoft.public.windowsxp.general)
  • Re: MS "UPTIME" ??? Like the UNIX command ???
    ... System Uptime. ... NET STATISTICS WORKSTATION ... Scroll back UP to>> Statistics since... ... systeminfo in a command prompt. ...
    (microsoft.public.windowsxp.basics)