Ich habe folgende .batWindows-Batch - ECHO verändert die% Error-%
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%
Der Ausgang Snippet ist:
about to start echoing, Errorlevel=0
Just echod a new line into time.txt, Errorlevel=0
about to start with emake, Errorlevel=1
Warum ist die Linie echo | set/p=start=%time%, >> ../time.txt
die %ERRORLVEL%
zu ändern?
Es ist nicht "echo"; es ist 'set'command falsche Syntax; Verwende echo | set/p start =% zeit%, >> ../ time.txt' – JosefZ