how to schedule a daily hibernate/wakeup for windows

lordrt

New member
Joined
Jul 25, 2012
Messages
4
Programming Experience
Beginner
hi, am currently trying to develop a small app which would automatically say hibernate the PC at 8pm and wake it up at 8AM the next day. anyone can help me with this part?

I can currently control the wake up using a date time picker by setting the date and time I want it to wakeup, but I must put it to sleep/hibernate manually to be able to do so. I would like instead to make both processes automatic ones based on the time (irrespective of the day/date).
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,272
Location
Sydney, Australia
Programming Experience
10+
If your machine is asleep then how is it going to run your code to wake it up? That's like saying that you want to wake yourself up in the morning. If you're asleep then how are you going to wake yourself up? The only way to start or wakeup a PC is via hardware, not software.
 

lordrt

New member
Joined
Jul 25, 2012
Messages
4
Programming Experience
Beginner
am referring to the code on this link for my app but modified mine to include hibernate as well:
Wake the PC from standby or hibernation - CodeProject

However, in it, everytime one has to set the wake up time, and instead I would like it to be automated using a scheduler as explained earlier for both the wakeup and hibernate, knowing that it has to be in the wake up state to go to hibernate and vice-versa...
 
Top Bottom