Welcome! Log In


[CMD] Find string in *files*.txt
i used it to find errors in expressmaint logs and report me by mail that there is a pbl:

cd "D:\_SAUVEGARDES-SQL\SQL2008ExpressR2\"
d:
find /c "failed" *full*.txt
if %errorlevel% equ 1 goto notfound
echo found
cscript.exe "D:\_SAUVEGARDES-SQL\mail.vbs"
goto done
:notfound
echo notfound
goto done
:done
Sorry, only registered users may post in this forum.

Click here to login