Getting system uptime on Windows
- From: walton.paul@xxxxxxxxx
- Date: 28 Nov 2005 18:07:41 -0800
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
.
- Follow-Ups:
- Re: Getting system uptime on Windows
- From: David Gravereaux
- Re: Getting system uptime on Windows
- From: walton . paul
- Re: Getting system uptime on Windows
- Prev by Date: Re: Little doubts with Snit
- Next by Date: Re: passing parameter by reference?
- Previous by thread: socket server with timeout and logging
- Next by thread: Re: Getting system uptime on Windows
- Index(es):
Relevant Pages
|