Can we have more than one exclusion in Synchronization?

"Cannot open folder" if I click too soon after switching to mapped network drive

November 16, 2021

How to find empty folders

December 27, 2021

"Cannot open folder" if I click too soon after switching to mapped network drive

November 16, 2021

How to find empty folders

December 27, 2021
WinNc QuestionsCategory: Feature requestCan we have more than one exclusion in Synchronization?
Karen Mullen asked 5 years ago
I usually specify *.ini when I am doing a 'merge to destination' synchronization   I also have a need to specify *.dat as an exclusion also, but I do not see a way to specify both -- it seems it's one or the other.  Please add some additional fields so that we can specify more than one exclusion.
Karen Mullen replied 4 years ago

I finally heard back from Dunes. The answer is this — separate the exclusions with a semi-colon. In my case, it would be *.ini;*.dat

1 Answers
Dave Myers answered 5 years ago
Great suggestion.  I don't typically use the synchronization feature but tried it out and agree that it could be improved with additional exclusions.  If you have a urgent need to get this function, you may consider a third party program from FreeFileSync.org or possibly RSync.Samba.org.  If you want to try another method, you can use XCOPY which is a DOS command built into Windows.  To use that with exceptions, you can create a text file (exceptions.txt) and just include 2 lines.  One would be .ini and the next line would be .dat.  Then you could use the Console button in WinNC to open a command prompt.  From there you would type:  xcopy "source folder\*.*" "destination folder\*.*" /exclude:"location folder"\exclude.txt  You would not include the quotation marks and would substitute the source folder and destination folders with the actual folders you want to sync.  The location folder is where the exclude.txt file resides.  If the two folders you sync are always the same ones, you could always create a batch file with the command line syntax and just run the batch file when you needed to sync the folders using the exceptions.  I would definitely create two test folders and populate them with test files including some .ini and .dat files to test this out to make sure it works for you.  At the command prompt, you can see all the features of xcopy by typing xcopy /?.