I have a directory that I want to copy to another directory using Robocopy.exe.
My plan is to exclude a few files from the root of the source directory. In fact, I'd like to ONLY exclude .html files from the ROOT of the directory.
The trick is that I'm currently using /E which is currently causing all subfolders to be processed too.
Therefore, the current outcome of my operation is that if I use:
/E /XF "*.html"
I'm going to exclude all HTML files site-wide.
Is there a way that I can keep copying all sub-folders, but also use XF to exclude .html files from the root?
Something like:
/E /XF "c:\releases\website_source\*.html"