On Windows 10.
I've tried looking at other questions but all the solutions were for either .exe files that you run yourself from the command line, or .bat files.
I'm using a program with a GUI that runs other exe files itself, and I'm trying to record the cmd window output when those exe files are opened.
I can't just call the exe's directly because the main program with the GUI is handling all the arguments etc required by those other programs it's executing.
Is there any way to prevent the cmd window from closing when these exe's are run?
edit: not a perfect solution but ctrl+C pauses the execution and brings up a prompt inside the cmd window "Terminate batch job (Y/N)?" which gives me a chance to manually copy all the output before it. Not ideal but thought I'd share just in case someone else would find it useful.