title: Using Robocopy to exclude a file extension from the root directory
body: <p>I have a directory that I want to copy to another directory using Robocopy.exe.</p>
  
  <p>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.</p>
  
  <p>The trick is that I'm currently using /E which is currently causing all subfolders to be processed too.</p>
  
  <p>Therefore, the current outcome of my operation is that if I use:</p>
  
  <pre><code>/E /XF "*.html"
  </code></pre>
  
  <p>I'm going to exclude all HTML files site-wide.</p>
  
  <p>Is there a way that I can keep copying all sub-folders, but also use XF to exclude .html files from the root?</p>
  
  <p>Something like:</p>
  
  <pre><code>/E /XF "c:\releases\website_source\*.html"
  </code></pre>