?
Solved

how long it has been since the last boot?

Posted on 2000-02-16
3
Medium Priority
?
168 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 150 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

Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

Question has a verified solution.

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

The following recovery method will work on All Cisco Switchs that run ISO software. You will need a good copy of the IOS version you want you use saved on your PC and a Com's Cable. The software for these switches comes as a .tar file. Tar is …
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 …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 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