for /f "delims=" %%f in ('dir /s /b /a-d "%searchloc%\hello.txt"') do (
if not "%%f"=="%workingroot%" if not "%%f"=="%startingloc%" (
echo Instance found.
set /a foundd=!foundd!+1
echo %%f>> "%templl%\wefound.txt"
)
)
should work for you.