title: Wildcards for directory in Windows batch command
body: <p>I need to copy the contents of a folder to another folder using a batch file - the problem I'm facing is that one of the parent folders will change every day, being named after today's date. So, for example, I have the following command:</p>
  
  <pre><code>xcopy /Y /S "\\auto-jenkins\Builds\2017\R1\\[0822]\EN\\*.*" "C:\Users\Administrator\Desktop\EN"
  </code></pre>
  
  <p>This works fine today, unfortunately tomorrow the <code>[0822]</code> will not exist and the files I need will be under <code>[0823]</code>. Does anyone know of a way I can use a wildcard in place of <code>[0822]</code>?</p>
  
  <p>The <code>[08**]</code> folder will be the only folder below <code>\R1</code> if that helps...</p>