A RunOnce that works at computer startup?
Put a value in the classic HKLM\...\Runonce key and it is:
But that (apparently) only happens when someone logs on, whereas I want the same behaviour but during computer start-up.
What I'm trying to do is figure out when a box has been rebooted between runs of an app i.e. code sets a "flag" somewhere which will be automatically disappeared during a reboot, and next time codes runs it checks to see if that flag is still there: Adding a RunOnce reg entry *almost* fits, except despite being in HKLM it (apparently) needs that logon.
The alternative I'd like to avoid is to stash a timestamp in the registry and then the next time code runs it does WMI to get last reboot time and compares that against my saved timestamp i.e. lastreboot > mytimestamp = rebooted.
 Don't google RunServicesOnce as an answer coz that's a Win 9x thing