1.

Solve : Batch File to Restart Workstation?

Answer»

Does anybody know a command line to reboot a workstation but displaying a menu with a "reboot now" option or later?

I know about the SHUTDOWN - R command, but this doesn't give the user the option to cancel the reboot if need be.

I BASICALLY want to ADD this line in a batch file that installs an application, then asks the user if they want to reboot now, or they can do it manually later.

Thanks,Quote from: pbisaillon on September 19, 2007, 11:16:12 AM

Does anybody know a command line to reboot a workstation but displaying a menu with a "reboot now" option or later?

I know about the SHUTDOWN - R command, but this doesn't give the user the option to cancel the reboot if need be.

I basically want to add this line in a batch file that installs an application, then asks the user if they want to reboot now, or they can do it manually later.

Thanks,
YES it does, you can configure it to shutdown after xxxx seconds. this will allow the user to cancel if need be. If that does not SUIT your needs, just do it in your batch file like this

Code: [Select]....installation code here
.... print to user: do you want to reboot now.?
.... check if user enters Y or y for yes
.... if entered "Y" or "y" , use the shutdown command to reboot
.... if no do something else
...


Discussion

No Comment Found