我想做类似的事情:
echo %errorlevel% > error.txt
这将节省error.txt:
error.txt
%errorlevel%
windows batch-file
batch-file ×1
windows ×1