I am writing a batch script that extracts files and would now like to log the output from unrar.exe to a text file. The output I have in mind are things like failure due to corrupted archives etc. or simply that the operation was successful.
Any ideas on how to solve this?
Thanks in advance!
You use redirection:
unrar > logfile.txt
To also redirect stderr:
unrar > logfile.txt 2>&1