Recently I’ve stumbled upon a really neat technique to listening to Spotify while I’m heading off to bed, then not have to get up to turn my music off once I’m dropping off.
Firstly, set up a playlist in Spotify which will help you relax. Once you have done this step, open up command line (cmd.exe) and type the following:
shutdown -s -f -t 900
The above command will shutdown your PC in 900 seconds. Let me quickly break down how this command works:
shutdownindicates you want to run shutdown.exe
-sis a flag saying you want to shutdown your PC
-fis a flag stating you want to force shutdown, so your PC will not hang around waiting for applications to close while shutting down
-tis a flag which indicates you want a timed shutdown
900means the amount of seconds until the shutdown occurs. In this case 900 seconds, or 15 minutes.
Once this is command has been run you should see an information bubble (Like below) stating when the shutdown will occur.
How to abort
You may also want to abort your shutdown, in that case just put the following code into your command line:
-a flag stands for “Abort a system shutdown”.