Merge multiple csv created last week
<p>This script provided by <a href="https://stackoverflow.com/a/19592600/3664960">raccoozie</a> works as described:</p>

<pre><code>@echo off
setlocal
set first=1
set fileName="combinedFiles.csv"
&gt;%fileName% (
  for %%F in (*.csv) do (
    if not "%%F"==%fileName% (
      if defined first (
        type "%%F"
        set "first="
      ) else more +1 "%%F"
    )
  )
)
</code></pre>

<p>Now I want to add a criteria to only select the files created from the last 7 days.</p>

<p>The problem is that the program doesn't create 1 file daily, but could create 7, 5, 9 or 0 files at certain days.</p>

<p>How to start?</p>