У меня есть программа, использующая findstr
, и когда строка найдена, errorlevel
возвращает 0
, а когда строка не найдена, errorlevel
возвращает 1
. Хорошо, это нормально, я могу с этим справиться.
Проблема в том, что я не могу найти никакой официальной документации о том, что означает каждый errorlevel
для findstr
. Мне нужно знать, может ли что-нибудь еще для findstr
вернуть errorlevel
из 1
, или же оно возвращает 1
только тогда, когда строка не найдена.
Предпочтительны ссылки на «официальную» документацию, если таковые имеются, но любой вклад будет принят с благодарностью.
Заранее спасибо!