How to write a batch file to restart windows 7 Tags: Windows 7 Shutdown Last response: October 16, 2012 8:32 PM in Windows 7 Share Adamm07x 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! More about : write batch file restart windows pauls3743 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 wysir 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 Can't find your answer ? Ask ! Get the answer wysir October 16, 2012 8:32:23 PM double post m 0 l Can't find your answer ? Ask ! Publish Related resources How to execute a MS-DOS Batch File in Windows 7? Forum How to execute a MS-DOS Batch File in Windows 7? Forum SolvedHow to let Windows 7 & 8 (in workgroup) share files with WRITE/MODIFY access? Forum How to write this batch file? Forum Windows 7 batch file newbie Forum Dos batch programme cannot open a file windows 7 Forum How to run a ms-dos batch file on windows xp Forum Windows 7 batch file help Forum How to run batch file without the DOS window poping up Forum Solvedhow to make a batch file that... Forum Solvedopen batch file in windows 8 Forum SolvedHow to make a batch file react to the opening of an .exe file? Forum How do you open a batch file in a batch file? Forum SolvedHow do I get my windows 7 computer to be on a wireless network for file sharing and on an iphone5 hotspot at the same time? Forum Windows 7: How to remove write protection from a CD-RW? I can't find StorageDeviceProperties in the Registry Editor Forum SolvedHow can I make a batch file that has different launch options? Forum SolvedBest way to deploy Windows 7 OEM installs to mixed batch of workstations???? Forum how to print a file to a network printer using specified printer driver using batch file? Forum Can anyone write a simple batch file? Forum SolvedHow To Install file on windows 7? Forum More resources Read discussions in other Windows 7 categories Configuration Customization Drivers Security Laptops !