2007-10-04, 06:14 PM
Recently I worked out a system to prevent my family switching off the computer while it is recording:
paralellprocessing.bat creates a C:\lock.txt file
postprocessing.bat removes the C:\lock.txt file
The computer can be turned off with a BAT file:
-it checks if the lock.txt is present
-if it is there, then it waits and re-checks every minute
-if it is not there, then hibernates the computer with the
command in the BAT file.
Unfortunately, if the computer is switched off using this command, then it won't wake up for the next recording.
If I switch it off with the Hibernate button, then it wakes up.
Any idea how to make these two things work together?
Hibernate from a BAT file, but schedule the wake-up for the next recording?
Thanks in advance,
Gabor
paralellprocessing.bat creates a C:\lock.txt file
postprocessing.bat removes the C:\lock.txt file
The computer can be turned off with a BAT file:
-it checks if the lock.txt is present
-if it is there, then it waits and re-checks every minute
-if it is not there, then hibernates the computer with the
Code:
rundll32 powrprof.dll,SetSuspendState 1,0,0
command in the BAT file.
Unfortunately, if the computer is switched off using this command, then it won't wake up for the next recording.
If I switch it off with the Hibernate button, then it wakes up.
Any idea how to make these two things work together?
Hibernate from a BAT file, but schedule the wake-up for the next recording?
Thanks in advance,
Gabor