Sunday, July 7, 2013

Shutdown PC/Laptop at given time

Some times I would be working on some thing and I want my Laptop to be shutdown automatically at a given time. I know what you are thinking if you are a Linux geek, set a cron job entry like so:

$ crontab -e
10 10 * * * (shutdown -rn now)

Hmm ok... that was easy ! Now how about windows. You can either use task scheduler or you can use following command.

at 1:30am shutdown -s -f


No comments: