I have a directory structure like this:
folder1\
help.txt
folder2\
help.txt
folder3\
help.txt
...
I want to copy the contents of folder1 using robocopy. For example:
robocopy folder1 destination /E
I want to exclude the help.text file that is in folder1 but include the help.txt files in folder2, folder3 etc. There may also be files named help.txt elsewhere in the directory structure so I don't want to have to hard code the paths to the files to include.
I can use the following command to exclude all files named help.txt but is there a way to just exclude the help.txt file in the root of folder1?
robocopy folder1 destination /E /XF help.txt