0

I am trying to print batch script logs on screen as well as writing it into log file. Using following program I can write it into file but this is not displaying anything on screen.

if not exist logs mkdir logs
if not "%1"=="STDOUT_TO_FILE"  %0 STDOUT_TO_FILE %* >logs\execution_%SUBFILENAME%.log 2>&1
shift /1 

Is there any way to do it?

Sandeep Singh
  • 7,790
  • 4
  • 43
  • 68

0 Answers0