I want to redirect all output (stdout and stderr) of console to the text file. I make the following steps:
- Open cmd.exe
Start command:
"python.exe">"file.txt"
After that, I'm waiting for the python's output in the file, but it's still in console. What I'm doing wrong?