I am trying to come up with a batch file that will perform the following:
@echo off for /d /r "c:\temp" %%a in (*) do if /i "%%~nxa"=="apples" set "folderpath=%%a" echo "%folderpath%"