Vee
actually it's VB.NET application, WMI also
I copied this script below for you from the script center
Set dtmConvertedDate =
CreateObject("WbemScripting.SWbemDateTime")strComputer = "."Set
objWMIService = GetObject("winmgmts:" _    &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set
colOperatingSystems = objWMIService.ExecQuery _    ("Select * from
Win32_OperatingSystem")For Each objOS in colOperatingSystems
dtmConvertedDate.Value = objOS.LastBootUpTime    dtmLastBootUpTime =
dtmConvertedDate.GetVarDate    dtmSystemUptime = DateDiff("d",
dtmLastBootUpTime, Now)    Wscript.Echo dtmSystemUptime Next
news:
[email protected]...