I have a third party EXE file (on which I have no control of any modification) which invokes a new CMD window in order to execute itself. In other words it a windows console application.
Now it executes with some switches for runtime options
<exe_name> /opt1 "param" /op2 All I want is if by any means I can capture the New Console output forked by this exe. Right now simple redirect as
<exe_name> /opt1 "param" /op2 > File.txt cannot work.
Please help me out in order to obtain the output of the new CMD window as explained above.