I have the following .bat snippet
echo about to start echoing, Errorlevel=%Errorlevel%
echo. >> ../time.txt
echo Just echod a new line into time.txt, Errorlevel=%Errorlevel%
echo | set/p=start=%time%, >> ../time.txt
echo about to start with emake, Errorlevel=%ERRORLEVEL%
The output is:
about to start echoing, Errorlevel=0
Just echod a new line into time.txt, Errorlevel=0
about to start with emake, Errorlevel=1
Why is the line echo | set/p=start=%time%, >> ../time.txt
changing the %ERRORLVEL%
?