I have an app that uses startAsProcess to launch an EXE. I’d like to wait for that EXE to finish doing its thing then display a log from it. The amount of time the EXE takes to finish is arbitrary. It doesn’t look like there’s anything that would give me a process handle when I launch the EXE, and nothing that would be able to tell me when it’s finished. I don’t see any InterprocessConnection stuff that would help, either.
I might be able to use File::getLastModificationTime on one of the two files the EXE creates, as long as the files are only written when the process exits (not sure), but I was hoping there was a more normal way to see when the process ended.