I have written this code:
It executes in 1 minute and 17 seconds.
Because ECHO is used twice, I have written this code:
It executes in 2 hours 45 minutes and 11 seconds.
Question: why is the TEE command 120 times slower?
Code:
@ECHO OFF
TIMER /1 ON
DO i in /S *.*
ECHO %i
ECHO %_date %_time %i >> %tmp\logbook1.txt
ENDDO
TIMER /1 OFF
It executes in 1 minute and 17 seconds.
Because ECHO is used twice, I have written this code:
Code:
@ECHO OFF
TIMER /1 ON
DO i in /S *.*
ECHO %i | TEE /a /d /t %tmp\logbook2.txt
ENDDO
TIMER /1 OFF
It executes in 2 hours 45 minutes and 11 seconds.
Question: why is the TEE command 120 times slower?