@echo off
echo "%%i" cd "%%i" FOR /D %y IN (D:\\xyz\\*) DO @ECHO %y
IF EXIST D:\\abc.txt ECHO abc.txt found git pull