In folder C:\A i have afile.h afile.cpp bfile.h bfile.cpp and some other .h and .cpp files (windows 10)
I want to copy only afile.h afile.cpp bfile.h bfile.cpp to C:\B folder and replace them if files in folder A are newer than folder B
I tried below but did not work, bat run but nothing happens
my copybatch.bat file
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
fastddsgen.bat -replace -example CMake aac.idl
xcopy /y /d C:\A\afile.h C:\B
xcopy /y /d C:\A\afile.cpp C:\B
xcopy /y /d C:\A\bfile.h C:\B
xcopy /y /d C:\A\bfile.cpp C:\B