I have a batch file scheduled to run every ten minutes to scan for new hardware because my internal HD goes missing after the PC sleeps. I would like to simply have this code run once on wake up.
Is there a way to capture an event when windows xp wakes up from sleep.
Here is the batch file code. I'm willing to encapsulate it in another language if necessary.
IF NOT EXIST N:\NUL (
echo %date% %time% N drive missing, rescanning >> .\log.txt