I have Task Master running a file_swap.bat every hour to move Loggernet .dat files to a shared drive. This works fine. I would like to redirect the Bat file console output to a log fie for latter review.
You can do this inside of your batch file by piping the output(s) of the various commands to a log file or you can do this by explicitly invoking the command processor using somthing like:
cmd /c <task.bat> >> <task.log>
where <task.bat> represents the path to your batch file and <task.log> represents the path to the log file. The >> syntax will cause the output from the command processor to be appended to the specified file if its already exists.
thanks I’ll give it a go