I use this old time-mem utility to measure the execution time of a command from the command line. This is just a c ++ project, the main code here .
I start checking, for the test I run timemem 7z some-err-str . The error is clearly displayed, the code shows 7, this code is returned. But in the batch file, if I immediately echo% errorlevel% after this command, I get 0.
The batch file itself:
timemem 7z some-err-str rem timemem возвращает 7. А выводится на экран 0 echo %errorlevel% In general, it behaves the same way as the similar ptime utility.
Why, I have no explanation. And most importantly, how can I fix it?
infocame from, otherwise it’s so incomprehensible.) - VladD