Written by: Friedrich Brunzema
E-Mail: brunzefb@yahoo.com
License: Freeware

This is a utility to reboot a Windows NT, Windows 2000 and Windows XP system with a delay of 10 seconds.  The program should also work on Win95, Win98 and WinME, but has not been tested. While the Windows NT Resource Kit provides a shutdown utility, this one shuts the system down a bit more ruthlessly.  This program causes Windows to shut down without sending the WM_QUERYENDSESSION message.  Programs such as MS Word use this message to ask users to save their work, and may request a stop shutdown.  Since the message is not sent, the system shuts down fairly quickly, and no message boxes should get displayed by any running applications.  You can use this in an automated environment, to force a reboot.  The utility installs a CTRL+C handler, so that you can abort the run.  It also counts down from 9 to 0 one second at a time, to indicate how much time you have left before the system goes down.  It is a console mode program (signed), with the full source (Visual C++ 7.1) included.
 
The utility includes one option (-w) with which you can specify a UNC pathname.  When this option is used, the system will wait for a particular file to become available before attempting a reboot.  This option is useful for creating a test-machine that auto-installs a build of a software; the program just monitors for setup.exe to be available on the build server before rebooting.  The reboot can then re-image the target computer, reboot into the new image and launch the installer.
 

RebootMe -- Reboots a system
 
usage: RebootMe [-w Path]
       RebootMe [-?]
 
  Starts a system shutdown in 10 seconds
 
   /w [UNC path]   The file [path] must exist before attempting a shutdown
   /?              Displays this help message.
 
 
