How to write a batch file to restart windows 7 Tags: Windows 7 How To 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" 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 Can't find your answer ? Ask ! Get the answer wysir October 16, 2012 8:32:23 PM double post Can't find your answer ? Ask ! Publish Related resources: ForumStop / Start Services Windows 7 with Batch Files ForumHow to execute a MS-DOS Batch File in Windows 7 ? ForumBatch file under Windows XP ??? ForumCan anyone write a simple batch file ? ForumBatch File - "Access Denied" On Windows 7 ? ForumNeed help with a batch file problem Forumenable/disable wireless networking batch file ? ForumHow to write this batch file ? Forum[SOLVED] Batch file commands not executed ForumHow to execute a MS-DOS Batch File in Windows 7 ? ForumDeny _ WRITE _ access to a file ForumWinXP Batch File ??? ForumRun Batch file before Windows XP loads ForumCalling Batch files ForumNeed write results from 2 seperate files to one log file via .bat ForumBatch file ForumBatch file renaming based on barcode ForumStart Windows Task Manager by command-line (or batch file ) Forum[Solved] Product key for windows 7 professional 32 bit free ForumMy lap top has had a dodgy copy of Windows Ultimate More resources Read discussions in other Windows 7 categories Configuration Customization Drivers Security Laptops !