This post shows how to find string in a file from MS DOS commandline ::findstr with /C: switch will search entire file for exact string findstr /M /C:"search-string-xyz" "C:\Files\MyLog.txt" > log_search_status.txt if %errorlevel%==0 ( echo SUCCESS – STRING FOUND ) …

How to search string in DOS Batch file from commandline using findstr Read more »