Windows Batch Script for restarting the Computer
Question by Guest | 2013-11-03 at 11:13
I would like to include a restart or reboot into one of my batch scripts for my Windows computer. Some actions are executed in the script and after this, the computer should be restarted.
Is this somehow possible or is it not possible to effect the system in such a manner through a simple batch script?
Related Topics
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
Put Windows via Script into Hibernation or Sleep Mode
Tutorial | 0 Comments
Windows: How to make Hibernation available
Tutorial | 0 Comments
jQuery: Submit complete form and receive content with Ajax
Tutorial | 0 Comments
jQuery: Send HTML5 Canvas to Server via Ajax
Tutorial | 0 Comments
The Askingbox Search
Info | 0 Comments
Lazarus: Detect Operating System (Compiler Switch)
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Yes, that is possible. Just add the following line into your batch script:
This opens the program shutdown.exe which is responsible for shutting down or restarting your computer. The parameter "-r" makes the restart, "-t 0" makes it happening after a delay of 0 seconds, so just in the moment.
More information about this process and the further parameters that can be used, I have put into this tutorial.
2013-11-03 at 15:37