2
I have 2 directories structures (A and B) that normally don't overlap. I want to merge A into B.
The following command will merge the directories:
xcopy A B /E /Y
However, I want to be able to detect conflicts between my 2 directories, and don't overwrite if the file is already at destination (in B). The xcopy will automatically overwrite files. I don't want to be prompted for each conflict (/y). I want to xcopy to return an error on conflict.
The /D option does not work either, because I don't care about the date.
I guess this is not possible with xcopy. Are there other solutions for that?
Clever answer. I'm fond of automating stuff like this, but careful with locales:
N
[o] isn't applicable everywhere, so this should only be used when active language is known a priori. – Helder Magalhães – 2019-05-14T06:45:39.047