Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to have a counter tell me how many times a computer 1

Status
Not open for further replies.

ptukey

Technical User
Sep 23, 2002
33
US
Hey

Is there a way to tell me how many times a computer reboots. If there is could you help me to get that counter. I have a labtop that keeps rebooting but I am always gone so I do not know how many times it reboots. Thanks

 
I would write a program to read the count from a file and
increase it and write it back to the file, and put it in
autoexec.bat
 
If in autoexec.bat your first line is:

echo 1 >> c:\reboot.txt

you'll get a list of the number one in the file reboot.txt in the root directory of C. Each digit represents a processing of autoexec.bat since the last time you cleared the file. Just delete the file, or delete the contents (either will work the same) to start the count fresh.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top