I saw a thread on Google from this site where a user was wanting to know how to reboot from the command line, or reboot from "DOS" in Windows XP.
XP Ships with shutdown.exe, and is also found on Windows Server 2003. You can download a copy for Windows 2000, and Windows 2000 server as it is found in the AdminPak.msi suite of software. XP a& Win server 2003 ship with the .exe.
Windows XP/2003 uses the "-" as the flag separator, but windows 2000 uses the "/" as the flag separator
For XP, go to the command prompt and type:
shutdown /?
this will show all of the available options. I use it all the time to reboot my servers in the middle of the night via a scheduled .bat file
This is a sample of how to reboot in 60 seconds, with a comment to the popup
shutdown -r -t 60 -c "Rebooting computer"
to cancel, just type
shutdown -a
взято отсюда
Комментариев нет:
Отправить комментарий