To put simply I am a temp IT for (Blank) motor company. I am trying to build a batch file that will search Progresslog.txt for a string. this string will be a user name like awilson. Thing is there is 1 progresslog.txt for each computer I have backed up under the folder names HMC(insert s/n) I need to search each progresslog for the string but can't figure out what I'm doing. This is what I have so far.
for /d /r ".\" %%a in (*) do if /i "%%~nxa"=="progresslog.txt" set "folderpath=%%a" & echo "%folderpath%"
for /f %%f in ('dir /b %folderpath%') do echo %%f & findstr /m "%Input%" progresslog.txt
if %errorlevel%==0 (
echo Found String!
) else goto A