Sync two folders using batch file -
Sync two folders using batch file -
i want utilize batch file synchronize 2 folders on windows, , i'm using xcopy command this
xcopy /s /d <original folder> <destination folder> it's working because want overwrite modified ones, have 1 tiny problem, when delete file original folder, file remains in destination folder when run batch file, breaking synching want achieve... think can't done xcopy, don't know command should utilize in case delete file in original folder.
edit: programs people don't understant lot of pc's don't want install in pc's. want plain batch file maintain 2 folders synchronized
solution: kuba wyrostek got command
robocopy <original folder> <destination folder> /e /purge
thank time
xcopy has no such option. alternatives are:
rsync - http://rsync.samba.org
robocopy - http://technet.microsoft.com/en-us/library/cc733145.aspx
batch-file
Comments
Post a Comment