Articles & News
Graphics & Displays
Tom's IT Pro
Login | Sign Up
The authority on tech
How to write a batch file to restart windows 7
Oct 16, 2012, 7:21 PM
Hi i just installed a new premium theme called hud apocalypse. i love the theme except it kinda erased my shutdown/restart/logoff/switchuser default from the start menu.
I was able to write a batch file to shutdown.
this is the code in the batch file
c:\windows\system32\shutdown -s -f -t 000
i've done a lot of google searches and alot of them say to restart via batch file
and the command is
but this just shutsdown the computer and doesn't reboot.
If anyone knows how to write a reboot batch file i would love to know it!
Oct 16, 2012
write batch file restart windows
Oct 16, 2012, 8:18 PM
I would suggest trying your first line with the "-s" swapped out fo rthe "-r"
Oct 16, 2012, 8:31 PM
c:\windows\system32\shutdown.exe /R /T 00 /F
it's basically saving a command prompt command to a file. Same exact context
Can't find your answer ? Ask !
Get the answer
Oct 16, 2012, 8:32 PM
Ask a new question
Create batch file
Batch file imitating keystroke
How to execute a MS-DOS Batch File in Windows 7?
[SOLVED] Batch file commands not executed
Dos batch programme cannot open a file windows 7
Strange thing with a batch file
Running a batch file on a specified date in windows cmd
Batch file in Windows 2000
Command in a Batch file to "Rescan Disks"
Batch files in Win XP Pro
Making a batch file for a server
Playing .Wav in Batch File
Net start service batch file
Request batch file help
How to run a ms-dos batch file on windows xp
Batch file help
Vista 64-bit Batch File Variable Questions
Run Batch file before Windows XP loads
Subscribe to our newsletter
icon arrow stem circle
About Tom's Hardware
Licensing and Reprints
Other Purch sites
© 2018 Purch All Rights Reserved.