Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Reboot Utility

Updated: 22 Jul 2009 | 2 comments
Mike.Langford's picture
+4 4 Votes
Login to vote

Quite often in our organization we want to offer the option of rebooting after a package has been installed, but on the other hand, if there is no user at the computer to respond, we don't want a message box to just hang there on the screen until someone clicks yes or no. To help facilitate this, I wrote a little app that we can tie into the end of our packages that require a reboot.

It is very simple. The exe requires 2 command line parameters.

  1. Application name - this is used to customize the message that is displayed
  2. Timeout before the message box will go away and reboot the machine.

Syntax Examples:

  • Reboot.exe /? - This will display the list of command line parameters

  • Reboot.exe "My Application" 180 - This will insert the words "My Application" in the dialog and will wait for a response for 3 minutes (180 seconds) before automatically rebooting.

  • Reboot.exe "My Application" "invalid timeout" - If you enter an invalid number for the timeout, you will get this message:

  • Reboot.exe - running without any command line parameters will give you this:

Comments

cnimmer's picture
22
Jul
2009
0 Votes 0
Login to vote

Win2K?

Does it work on Win2k machines?

Mike.Langford's picture
23
Jul
2009
0 Votes 0
Login to vote

Win2K?

Absolutely!