Dears,
I have a code that works for copying the files, from one to another folder, it also search if the file exists in the subfolders.
But I want it to check if files are modified and replace the old ones.
This is the code that works for me.
I would appreciate for your help.
@echo off
for %%I in ("C:\test1\*") do (
dir "C:\test2\%%~nxI" /A-D /B /S >nul 2>nul
if errorlevel 1 copy "%%I" "C:\test2\" >nul
)