Csharp Uptime Application
Published:
Here’s a C# console application for Windows that displays the uptime at a command prompt. Just type ‘uptime’ from the location of the executable. I was suprised how little code this took. The zip file includes the Visual Studio project. In my case it’s Microsoft Visual C# 2005 Express Edition Beta 2. I didn’t have to search long, the key code to this program was found on .NET 24/7. Example output follows…
Uptime is 5 day(s), 3 hour(s), 3 minute(s) and 0 second(s).
Download
https://web.archive.org/web/20081201161456/http://dotnet247.com/247reference/msgs/14/73704.aspx
https://web.archive.org/web/20081201161456/http://www.jimhribar.com/programs/csharp/uptime.zip