I have a program that uses findstr , and when the string is found, errorlevel returns 0 , and when the string is not found, errorlevel returns 1 . Good thing I can handle this.
If the problem is that I cannot find the official documentation of what each errorlevel means for findstr . I need to know if anything else for findstr ever return errorlevel from 1 , or if it returns only 1 when the string is not found.
Links to the “official” documentation are preferable if they are, but any input would be appreciated.
Thanks in advance!
cmd exit-code findstr
RC_Crusher07
source share