[Solved] Batch file to copy and rename files from multiple directories
Here is a short batch code for this task: @echo off pushd “C:\Temp\Data” if not exist “Output\*” md Output for /D %%D in (*) do ( if /I not “%%D” == “Output” ( for %%J in (“%%D\plots\*.jpeg”) do ( copy /B /Y “%%~fJ” “Output\%%D-%%~nxJ” >nul ) ) ) popd Specify in second line the path … Read more