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:est1*") do ( dir "C:est2\%%~nxI" /A-D /B /S >nul 2>nul if errorlevel 1 copy "%%I" "C:est2" >nul )
2.1m questions
2.1m answers
60 comments
57.0k users