I'm running a bat file in windows. I'm trying to generate a log file of all the output that appears in the command prompt, to have as a document.
Note, Not a log file of the contents of the bat file but of the command prompt that it outputs.
How would I do this? Thanks

How to generate a log file of the windows prompt when I run a bat file
Redirecting to output is done by using > or appending to file using >>
for batch-file, we typically call them.
(call script.cmd)2>&1>"logfile.log"

or append
(call script.cmd)2>&1>>"logfile.log"

Note, 2>&1 2>&1 is redirecting the stderr stream 2 to the stdout stream 1, it is important here, seeing as you said you want to log all of the output results to logfile.
So that should also give the clue that you can in fact redirect success (stdout) results to one file and failures (stderr) to another, i.e
(call script.cmd) 1>"Output.log" 2>"Errors.log"

Note, some commands and executables sends everything to the stdout stream and nothing to stderr, example ping.exe.
