Quantcast
Channel: Microsoft forum - dslreports.com
Viewing all articles
Browse latest Browse all 8524

%time% is stuck in a batch file

$
0
0
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

Viewing all articles
Browse latest Browse all 8524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>