Solved

how long it has been since the last boot?

Posted on 2000-02-16
3
161 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
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Otta earned 50 total points
Comment Utility
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 95

Expert Comment

by:Lee W, MVP
Comment Utility
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 95

Expert Comment

by:Lee W, MVP
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Broadband over Power Lines Broadband over Power Lines is the technology of transmitting computer data through power lines. This method of connectivity allows the user to have access to the internet without having to rely on additional cables, suc…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now