I have an application which uses the microsoft kinect device. The thing is that at certain moments, the device may not be functional, and I plan to restart my PC in order to try to reset the kinect status.
The thing is that I want to restart the PC for a limited number of times.
I am planning to check how many restarts were given to my PC by writing the date at which the PC was restarted in a file from my HDD, and check that file for future restarts.
Is there any other way of checking how many restarts were given to my PC before a given time?
You can look in the event log and count for the event.
If you look through I can see for example 6009 is the first event after a power up on my machine running windows 7, you then have a date stamp and when it started, you can then work from there.