I\'m working on Windows. I have many jpg files in subdirectories of a directory. I don\'t know exactly the architecture of the directory, meaning that I don\'t know
@Echo off&SetLocal EnableExtensions EnableDelayedExpansion
For /d %%A in (C:\dir\*) Do (
Set "Files="
For /F "delims=" %%B in ('dir /S /B "%%~fA\*.jpg"') Do Set Files=!Files! "%%~fB"
If defined Files echo process.bat !Files!
)
pause