I have an EXE file that I need to run immediately before I hibernate my Windows 8 PC, every time. How can I do this? I know I can use the Task Scheduler to accomplish this, but which trigger is best suited for this?
Some information about my Windows 8 PC environment: I have a password on my user account, but I have the "automatically login" option enabled, so I never have to enter it when turning on or waking my PC.
I'd like for this script to run when hibernating my PC, but if the trigger also runs when the PC sleeps, then that's fine, too. But the hibernation part is the important part, because I almost always hibernate my PC every night. I think the PC only goes to sleep if I leave it on but it idles for about an hour.