View Single Post
Join Date: Jan 2007
Posts: 200
Reputation: shouvik.d is an unknown quantity at this point 
Solved Threads: 6
shouvik.d's Avatar
shouvik.d shouvik.d is offline Offline
Posting Whiz in Training

redirect output of a CMD to file

 
0
  #1
Nov 18th, 2008
Hi There,

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.
Last edited by shouvik.d; Nov 18th, 2008 at 3:21 am. Reason: Inserting Inline Code instead of Code wrapper
Regards
Shouvik
Reply With Quote