Results 1 to 4 of 4

Thread: How do I find System Up Time of a WinNT 4.0

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Location
    Boston, MA, USA
    Posts
    3

    Post

    machine using VB?
    This is assuming performance monitoring is not enabled. I know in Win2K there is a performance monitor registry key that has all this info..


  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    the GetTickCount API will return the number of milliseconds that Windows has been running. Just do your math from there!

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Location
    Boston, MA, USA
    Posts
    3

    Post

    I know that.. but that's only valid for 49.7 days... after which it goes back to 0... and I certainly hope our servers stay up for longer than that

  4. #4
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You could write a very simple program which when run at Windows Startup will Make a Registry Entry Marking the Current Date and Time, then at any time you can check this Value in the Registry and calculate your Up Time with no Time Limitation.

    I figured something like this was probably already being done, but couldn't find an entry in the Registry.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width