Compare & Sync Folders

Posted on  by 



Beyond Compare is a multi-platform utility that combines directory compare and file compare functions in one package. Use it to manage source code, keep directories in sync, compare program output, etc. Compare definition: 1. To examine or look for the difference between two or more things: 2. To judge, suggest,.

While there are many more advanced tools for synchronizing folders, one very useful method (on Windows OS) is to use the XCOPY command. The XCOPY command has been part of the windows suite since the DOS days, and provides a helpful set of options that the standard COPY command does not.

Sync Folders In Windows 10

If you are in an environment where you have several mobile devices generating content that you would like stored on a central server for backup and group collaboration, the XCOPY command can be a simple solution for performing regular migrations of the new / updated content on your mobile device.

Compare & Sync Folders

The XCOPY command for copying the updates from one folder to another is as follows:

The flags used in the above example define:

Sync

Beyond Compare Sync Folders

  • /E
    This flag causes all folders and sub-folders to be copied
  • /D
    This flag causes a DATE comparison to be made, only copying items that are newer than the DESTINATION item. If the DESTINATION is older, or does not contain the file, then it will be copied.
  • /C
    This flag tells XCOPY to continue if it encounters an error - typically errors occur with read-only files, or files that have protected permissions
  • /Y
    This flag tells XCOPY to suppress prompting you for confirmation, which is necessary if you intend to create an automation script or scheduled task

If you wish to automate this process, the easiest method is to create a BATCH file and then create either a SCHEDULED TASK, WINDOWS USER LOGIN SCRIPT or a SHORTCUT to the batch file that you would manually run when you connect your device.

To create a BATCH file, you will:

Compare And Contrast

  1. Open Notepad
    Start -> Accessories -> Notepad
  2. Type or Copy the following into the blank document
  3. Save the file as XCOPY_AUTO.BAT somewhere where you can find it. If you don't know where to put it, just save it on your desktop.

Sync Folders Free

Scheduled Tasks and Login Scripts are a bit harder and if you've gotten this far, you should be able to perform a google and find instructions for further automation.

Compare Text

Good Luck and Happy Coding!





Coments are closed