Solved

how long it has been since the last boot?

Posted on 2000-02-16
3
167 Views
Last Modified: 2013-12-27
how can i check how long my computer was on since the last restart(boot)
refer to winnt win98 win2000
0
Comment
Question by:mustaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Otta earned 50 total points
ID: 2530359
Add the line:

@ECHO mustaki > C:\BOOT.DAT

to the 'AUTOEXEC.BAT' (Win95/Win98)
to write that string to that file.

Then 'DIR mustaki' will give the date/time at which the file was written.

For NT4/5, bury this line in a '.BAT' file, and run this '.BAT' file from the "Startup" folder.
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 2531114
For NT, you can use unix like freeware utilities (these may also work with 9x) called "Uptime".  Further, on NT/2000 you can type "Net statistics workstation" or "net statistics server" - this will tell you the last time the Workstation (or server) service started.  If you had to restart the service(s), then this will be inaccurate, but it's rare that you restart these services, so they should suffice.
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 2531222
The suggestion for NT4/2000 will only work if you log in to the computer thus for NT, you are not getting an accurate reading.  Further, it will rewrite the file every time you log in, so if you log in then logout as you go to lunch then come back, the new file info will claim it's been up since you returned from lunch.  Whereas using Net Statistics, you are getting the actual time since the service started
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will step through configuring a SonicWALL appliance to utilize an internal DHCP server for Global VPN Client (GVC) hosts.  There are times when using an external (external to the SonicWALL) DHCP server, such as Windows Servers, isn’t pr…
Hello All, I have been training on Multicast for a while now and whenever I start the topic , I find out that my friends /  Colleagues mention that they do not know how to test Multicast Joins. As most of the multicast would be video traffic and …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question