I have a batch file with a loop inside that takes some time to execute, and in various places I have:
echo %time% >> logfile
to record the time of execution.
However, inside the loop all time stamps are the same, which is clearly incorrect. What's the best way to make my batch file to read a "clean copy" of time instead of reusing a (presumably) cached value?
TIA
--
.sig
↧