Saturday 25 April 2015

Shutdown windows automatically after a specific time. #Random Tip - 4

Hi

We come across situations like these

You're sleepy and a file being downloaded is 85% complete and you will need to turn off/shutdown your system after that.
or 
Something needs to be processed and is stopping you going out as you need to shutdown your system.
or
You're copying files that takes almost 3-4 hours.

Now its simple to deal with situations like these.
Its just one line command and is even easy to remember. 

STEP 1: Open your run command by pressing "START + R" or as shown in the image below.


STEP 2: Type this

shutdown -s -f -t 3600 
and then click ok.
3600 is number of seconds.  i.e. 1 Hour in this case.

3600 is number of seconds i.e. 1hr in this case.
After 3600 seconds your system terminates all programs and automatically shuts down without prompting.

This is very useful if you're going out for more than 4 hours and you want to copy a large file, process a HD video or download something, installing a heavy game which would take, assume 3-4 hours to complete and there's no one it shut it down manually after the work is done. Don't worry about the data being lost, just set few minutes more than the ETA and everything will be cool and fine.

#additionalTips

  1. If you find difficult to find number of seconds in 'n' hours, just type "calc"(with out quotes) in run window which opens a calculator, ex: 7*3600 which is 25200 for 7 hours; so, the command would be shutdown -s -f -t 25200 for 7 hours.
  2. If you want to cancel the scheduled shutdown, type "shutdown -a"(with out quotes) in run window. -a for abort

I hope you find it useful. Have a nice day.
Thank you.

Regards
K.MedhaChaitanya - ArCsOfLiFe.

No comments:

Post a Comment