How to add a restart command in batch processing. The system is Windows 2000 Professional. I found the command iisreset/reboot after searching for a long time, but I don't know how to use it. Is there any expert who knows and can tell me?
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Originally posted by wudixin96 at 2007-8-3 09:35 PM:
Is it a system restart?
shutdown -r
Set colOperatingSystems = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Win32Shutdown(12)
Next