Shutdown / Restart batch files in Vista?

Associate
Joined
19 Oct 2002
Posts
1,940
Location
Maidenhead
One thing i find rather annoying about Vista is the inability to be able to press the Start button then U to get to the Shutdown menu then either R or U depending on whether i want to shutdown or restart the computer. Instead after pressing Start i get the 'Search' option :(

A couple of days i created 2 batch files, one was to Shutdown the computer and simply said Shutdown -s, the other Shutdown -a, in case i accidentally shutdown the computer or while uninstalling a program, without my knowledge it decided to reboot my computer.

Both of these worked fine on the first day but after trying to make one for restarting the computer Shutdown -r, now they just scroll down endlessly in the command window.

How can i make these work?

Cheers
 
shutdown -r -f -t 15

This is a forced restart with a 15 second wait (so you can cancel it) copy it into a file called restart.bat and let me know if it works.



M.
 
Back
Top Bottom