
Have you ever been in a situation that you would like to turn off your computer in about an hour, and you will not be at home at the time? You could have been in such situation if, for example, you left your disc to defragment or the download of the certain Internet file were not over yet, and in the meantime, you left for a cup of coffee. That is just one of the examples, but there certainly are many occasions when you wish to turn your computer off in a precise time. Naturally, there are many applications for the occasion, made by various manufacturers,
You can make such a script or a “small program” in two ways.The first method is actually to not write a script at all. We only write the command in the command prompt, i.e. Run. So, all we have to do is to click the Run underStart menu and enter shutdown –s –t. After “-t” enter the wanted time of the turn off in seconds. For example, if we want our computer to turn off by itself in an hour, we will just write shutdown –s –t 3600.
The second method is to make a .bat script, which we insert into the scheduled tasks, to make it start at a specific time. Hence, the first step is to make a .bat script, which is actually quite simple. First open the notepad, write “shutdown –s” in it and save the document with the arbitrary name and .bat extension, for example “Turn me off.bat”
0 comments:
Post a Comment