Sign in with
Sign up | Sign in
Your question

How to write a batch file to restart windows 7

Last response: in Windows 7
Share
October 16, 2012 7:21:19 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
Shutdown -r

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!
a b $ Windows 7
October 16, 2012 8:18:39 PM

I would suggest trying your first line with the "-s" swapped out fo rthe "-r"
m
0
l
October 16, 2012 8:31:55 PM

c:\windows\system32\shutdown.exe /R /T 00 /F

it's basically saving a command prompt command to a file. Same exact context
m
0
l
October 16, 2012 8:32:23 PM

double post
m
0
l
!