I am trying to redirect both the standard out and standard error in a Windows batch file to the same file.
However I would like the standard error and user input prompts to be displayed in the console as well.
I tried the following:
Process_SVN_Repos.bat > Process_SVN_Repos.log 2>&1
However this causes the STD ERROR to go to the file (which I want), but does not show up in console and hence I can not input any user required inputs because I don't see any user prompt.
So basically I am trying to:
- Redirect all std out to a file.
- Redirect all STD ERROR to the same file.
- Also show the same STD ERROR on the console.
- See the user prompt the application needs in the console and be able to input the user prompt.