Software >> OS >> Windows >> Command Line >> How to synchronize folders and files using xcopy


Assuming folder A is the master and folder B is the slave such that updates always done at folder A, synchronization is A->B
 
xcopy \A \B /M /E /Y /F
 
/M => copy only files with archive attribute set and turns bits off
/E => copy subdirs including empty ones
/Y => suppresses prompting to overwrite existing file
/F => displays full source and destination path