I need some help creating a .bat script that starts a program and when done it restarts the computer.
cmd /c C:\"Program Files"\"Toolwiz Time Freeze"\ToolwizTimeFreeze.exe /usepass=password /freezealways
This is what is should do first. This works fine. This will enable the program to protect after every restart. That's why I need to add a restart. I was thinking of adding this
&& shutdown /r /f /0
Problem is that the command prompt keeps hanging. And the shutdown does not go through. Any ideas?
Best Answer
The syntax that you should use for the shutdown command is:
shutdown -r -f -t 0
I think it might be your /0 that is throwing it off. The full syntax can be found here on TechNet.