CODE: [Copy to clipboard]@echo off for /f "delims=" %%i in (' dir %gpath%*.gho /b /s ') do echo %%~dpi>>%temp%\tmp.txt