Solved

how long it has been since the last boot?

Posted on 2000-02-16
3
162 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
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 95

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 95

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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…
This article is a how to to configure a UCS Ethernet-uplink portchannel via the console. It is easy to do and can be done quite quickly. In certain versions of the UCS manager the portchannel has issues coming up and this is a workaround. I am…
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.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

13 Experts available now in Live!

Get 1:1 Help Now