System Uptime Utility

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

Title Uploaded Size
UpTime10.zip 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 FortyPoundHead.com
 ---------------------------------------
 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

 Example:

    uptime D

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

    7

Sample Runs

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

V:\Uptime10>uptime D
7

V:\Uptime10>uptime H
174

V:\Uptime10>uptime M
10443

V:\Uptime10>uptime S
626607

License

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.

Requirements

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


About the Author

dwirch has posted a total of 188 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:54.163.53.153

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




Code Links