fortypoundhead.com

System Uptime Utility

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

Download Attachment


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 185 articles.

You can find more information from dwirch by visiting http://www.derekwirch.com.


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.166.188.64

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




Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers