Reboot Utility
Updated: 22 Jul 2009 | 2 comments
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.
- Application name - this is used to customize the message that is displayed
- 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:
download Filed Under:
Group Ownership:
Comments
Win2K?
Does it work on Win2k machines?
Win2K?
Absolutely!
Would you like to reply?
Login or Register to post your comment.