WHS1 run .bat on resume.

Associate
Joined
5 Jun 2004
Posts
1,341
Location
Hythe, Hants
Guys,

I need to run a batch file when my WHSv1 resumes from standby. I have Lightsout, but it dosn't want to run the .bat file when the system resumes from standby.

Any ideas?
 
You could do it in autohotkey. Save the current time in a text file, 1 minute later, check the file. If its been more than a minute, assume the machines been in hibernate and call the batch file. If not more than a minute, update the time in the file, and go back to the start. A bit hackish I grant you, but should work.
 
Back
Top Bottom