Programming an automatic shutdown of your PC
Published by micka39 in Tips, Vista, XPHere's a little trick found in 'I gallery web dev "can be practical.
For example if you plan a virus scan but it could last long and you want to stop after x minute (s) with this method you can either restart it, stop it and also use free time to but there is not much interest from the start menu in this case.
To use it you have a choice between returning the command in the Run window is the fastest method but if it is a task not otherwise regularly or if the stain is due you can create a shortcut that will launch this command when you desire as if you threw a normal program.
I will show that the second example is the shortcut for it is exactly the same for the run command there has just opened the window and you can achieve the same result.
To create a new appointment shortcut on the desktop (Windows + D) then right click => New => Shortcut
A window opens if you wanted to create a shortcut to a normal application would have to click go, but we will return here a simple command line ![]()
Copy and paste this line "c: / windows/system32/shutdown.exe-s-t 60" without quotes of course!
Save all your files open and close running applications then click on Next it will offer the shutdown leave the name and then click on finish.
You will then normally on a desktop shortcut named shutdown run by double clicking it.
A message will appear indicating that when the computer shuts down in 1 minute.
Here are other commands that can be made:
- s: stop
- r: Restart
Then, you simply replace the number of seconds by 60 and the s / r to run this command.
Update: The command in Windows Vista only allows a range from 0 to 600 seconds then ten minutes in the current Beta version of Windows 7 this interevalle is extended to 10 years.







Not bad idea shortcut
Here I have followed my advice to schedule a closing of windows vista, by cons how do you plan it in an hour, I had to delete the number 60 and put 3600 as 3600 seconds = 1:00 but it does not work not ...
Yes, on Windows Vista the maximum interval is 600 seconds which is why 3600 seconds does nothing.
For a PC running Windows 7, this problem no longer exists.