Page 1 of 1 1
Topic Options
#102225 - 2003-06-14 12:08 AM Uptime for machines
theguru Offline
Lurker

Registered: 2003-06-14
Posts: 4
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in body]

I'm looking for a UDF that would give me the uptime in days/houirs/min/sec. Can't use @TICKS because it rolls over around 25 hours I think.

I've seen a few around, but nothing that sits on its own as a UDF.

Can anyone point me in a good direction or provide me with one?

Thanks.

[ 17. June 2003, 16:00: Message edited by: sealeopard ]

Top
#102226 - 2003-06-14 12:39 AM Re: Uptime for machines
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I have not a clue why you would need @Ticks to figure out the uptime. There have been solutions posted that calculate the uptime by reading the event log and there is the ResKit UPTIME.EXE that uses the same methodology.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#102227 - 2003-06-14 01:29 AM Re: Uptime for machines
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
WMI can do it also...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#102228 - 2003-06-14 03:44 AM Re: Uptime for machines
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
dunno where you have seen those but there indeed is udf:
Uptime - returns time system has been running since last boot
_________________________
!

download KiXnet

Top
#102229 - 2003-06-17 03:57 PM Re: Uptime for machines
theguru Offline
Lurker

Registered: 2003-06-14
Posts: 4
Lonkero

When i use that script right after booting... it says I've been up for over 5 hours. ???

Is something wrong? Windows 2000 if it matters.

Top
#102230 - 2003-06-23 06:07 PM Re: Uptime for machines
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
We use Marshal Software (Mail and Proxy) at my comp. and it has been prety awesome so far.

Rocco
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#102231 - 2003-06-23 07:12 PM Re: Uptime for machines
theguru Offline
Lurker

Registered: 2003-06-14
Posts: 4
Exactly what does that have to do with my question?
Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 675 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.059 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org