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