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
If defined Files echo process.bat !files!
should solve the problem - but whether process.bat
will co-operate is yet to be determined. Would need you to list process.bat
if required.
@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