2020-05-14から1日間の記事一覧

Check the string is exist or not in a file and use it in the Windows Batch file

Summary Do something in the Windows Batch file depend on that some string is exist or not in a file. Batch file We'll find string "sample" in the file sample.txt. @echo off find "sample" sample.txt echo ERRORLEVEL=%ERRORLEVEL% if %ERRORLEV…