I'm trying to run a bat file from within another bat file and redirect the output. That's working fine. However, after that call to the bat file has finished, I want to print to one of the files I've been redirecting to, but it doesn't appear to be working.
Here's what I'm doing right now.
@ECHO OFF
call %1 2> error.log 1> compile.log
echo Complete >> error.log
My hope is that the Complete text is appended to the log when bat file finished running. However, it never writes out. The log only contains output from the bat file I'm calling.
Any suggestions? Thanks.