Require response to message before reboot

I have an online kscript setup that I would like to have a message box indicating that the computer needs to be rebooted to complete the script.  I have it built in to reboot using the shutdown -r -f command but it runs that step even before the message box has been responded to.  Is there a way that I can get this part of the script to run the way I intend or will I need to change my executable file to perform this functionality?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: JasonEgg 3 years ago
Red Belt
You should be able to do this with a separate task and the correct "break/continue" logic but TBH I haven't done this myself. The easiest might be to alert the user that a restart is imminent in the "user notify" section, though if your script takes a while to execute that would be confusing to the user.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ