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?
Please log in to answer
Posted by: JasonEgg 3 years ago
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.