Monday, April 27, 2015

Ultra Simple Computer Sleep Timer

If you have a Windows machine and you'd like to...

  • Shutdown your computer after X number of seconds...
    ▶ Run command prompt and type shutdown -s -t X, where X is your desired timer in seconds.
  • Put your computer to sleep after X number of seconds...
You're out of luck. I've took ten minutes of my time writing a Winforms application that does want you want!

The program should be self-explanatory.

Q. Is this a virus?

A. God no, and I knew you'd ask that so I'm posting the source, although any programmer with a functioning brain could write this in less than 10 minutes. The code is also full of bad, since this was intended for personal usage and I didn't want to clean it up.