I'm not sure what your test data is but use quotes like this, to protect against spaces and things like the =
in tooldir=
in your case:
for /F "delims=" %%a in ('findstr /L "tooldir=" "%batFileName%" ') do set "batToolDir=%%a"
echo "%batToolDir%"