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   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity


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.
Answered 03/07/2018 by: JasonEgg
Red Belt

Please log in to comment