What makes this a bit tricky is that EOB is detected from worker thread, and it's not possible to invoke a messagebox from there. So somehow the worker thread would need to signal the main thread that batch is finished, after which the main thread takes care of the messagebox/closing the application. Perhaps something along these lines might work:
What makes this a bit tricky is that EOB is detected from worker thread, and it's not possible to invoke a messagebox from there. So somehow the worker thread would need to signal the main thread that batch is finished, after which the main thread takes care of the messagebox/closing the application. Perhaps something along these lines might work:
http://stackoverflow.com/a/25419716/1209004