Batch file execution + QTP
I am executing set of files from the Command prompt using QTP.
For example: C:\>File1 File2 File3
I am getting the response of the execution in the screen.
If I want to redirect the output to a file, I am using the 1 and 2 for the response and Error.
C:\>File1 File2 File3 1>Response.txt 2>error.txt
But I want the response to be displayed in the screen as well as in the response file. Please help me to resolve this issue.
Re: Batch file execution + QTP
Redirecting output from a dos batch file to a file prevents the output from being displayed. If you want both, you will need to read the output file after it completes and then display the contents.