How to force a reboot at the end of compiled EXE

Convert your BATch files into EXEcutable format in one click.
Post Reply
techguy87
Posts: 1
Joined: Tue Mar 17, 2009 9:35 pm

How to force a reboot at the end of compiled EXE

Post by techguy87 »

I want to force a reboot (Windows XP) at the end of my batch file, and I know the command:

Code: Select all

shutdown -r -t 10 -f
But when I compile my batch file and run it, it will not reboot. I have tried changing the command to

Code: Select all

start /wait C:\Windows\System32\shutdown.exe -r -t 10 -f 
but this does not work any better. Can anyone give me some suggestions?
Post Reply