System Uptime Utility

Posted On 2017-11-12 by dwirch
Tags: Free Stuff Windows Commandline Windows
Views: 687

Title Uploaded Size 11/12/2017 4:10:33 AM 4,257

This is a simple but useful command line utility for determining the uptime of the local computer.

That's it. That's all it does. I wrote this some time ago, and have found it useful over the years for monitoring up time of several systems. Really. A simple way of sending this to a central location would be to simply pipe the output to a shared location. Say, a file server share. Something like this:

uptime H >> D:\%computername%_uptime.txt

Like I said, I have found it useful over the years, and hope you do as well.

Help Screen

By using the ? command line switch, you can view the available command line options, as shown below.

V:\Uptime10>uptime ?

 UpTime 1.0.0
 (c) 2017
 This program simply returns the uptime of the local system, with the choice of days, hours, minutes, or seconds.

 To select a display mode, simpy use one of the following command-line switches:

    D        Days
    H        Hours
    M        Minutes
    S        Seconds
    ?        Display this information


    uptime D

 will result in the following output, if the local system has been up for seven days:


Sample Runs

Here are few sample runs, one for each of the available command line switches:

V:\Uptime10>uptime D

V:\Uptime10>uptime H

V:\Uptime10>uptime M

V:\Uptime10>uptime S


This software is free to use. Free for commercial use, personal use, whatever. I do retain all copyrights, though.

Special Instructions

No setup for this program is required.  Simply drop it into a directory somewhere in path, and it will be available to you for use.

If you do not put in a location in the path, you'll have to reference it  by its full path and filename.


No special requirements. No external libraries needed, no internet access, nothing.

About the Author

has posted a total of 190 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links