|
Auto shutdown windows
|
|
01-16-2010, 01:28 PM
Post: #1
|
|||
|
|||
|
I was really into games, while playing an RPG or strategy games I always lost the count of time. It is like I am in trans or something. I usually end-up 3 am or 4 am and that's just playing. This has to stop or my eyes will hunt me in the future
.Searching for a solution, I thought that by having a software that will automatically shutdown my computer on a specified time will solve my problem. I came across to most proprietary software that cost so much and I don't have that much of a penny to pay for. Going back to basic I then check if there is a command line program for windows that will shutdown the machine. Guess what? There is... "shutdown.exe". reading its manual lead to an experiment.The program is located at c:\WINDOWS\system32\ what I did was to create a file from notepad named shutdown.bat containing this 1 line command "c:\WINDOWS\system32\shutdown.exe -c "Sleep!!! or you'll die!!" -f -s -t 00". Since notepad will automatically create the file extension to .txt we need to save the file like this. Click on File -> Save as -> change the Save as from *.txt to All files -> Then in File name type: shutdown.bat. This will save to a file with a .bat extension. Well, what do you know? The batch file can be executed by double clicking to it and then windows box can be shutdown without any questions asked. The next thing is to schedule the manual shutdown. This can be done by going to control panel then click on Scheduled Tasks. Double click on Add Scheduled Task a wizard will pop-up and just follow the guided instruction and locate shudown.exe program and when asked on when to perform the task just select daily and choose the appropriate time that you need to execute the task. At the end of the wizard lets check "Open advanced properties when I click Finish". In the advance property, locate Run and specify this value "c:\WINDOWS\system32\shutdown.exe -c "Sleep!!! or you'll die!!" -f -s -t 00" and the value for Start in is "C:\WINDOWS\system32" also making sure that the schedule will run check on Enable. Poking around the tabs and changing the parameters to suite your needs. Done in checking and changing the parameter click on OK. That's it. I am a bit happy now on my windows auto shutdown because I did not pay for additional software that cause much. I can now sleep early because all programs will exit without a prompt and windows will shutdown. The down side is that if the game is so intense and auto shutdown will run... Well you know the feeling... Have a nice sleep everyone... |
|||
|
01-26-2010, 05:32 PM
Post: #2
|
|||
|
|||
|
RE: Auto shutdown windows
Yeah.. tested it and its working perfectly well, on the pc I have installed.
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help

.
"shutdown.exe". reading its manual lead to an experiment.
