title: Bat file help - Trying to cerate new folder->copyAll->add Timestamp - Testdata mangement
body: <p>So I work as a manual tester and I'm trying to automate some...</p>
  <p>This is what I'm trying to achive:</p>
  <ol>
  <li><p>Copying all xml files and adding timestamp to files (including subfolders)</p>
  </li>
  <li><p>Moving it to a new folder name &quot;TestRun todaysdate&quot;
  ----This I have not yet achived....</p>
  </li>
  <li><p>Reading the result from specific table from SQL table</p>
  </li>
  <li><p>Name = result pass or fail logic</p>
  </li>
  <li><p>Present result where how?</p>
  </li>
  </ol>
  <p>Right now I'm stuck on the first step.... creating a batchfile that copies all folders and adding the timestamp:
  This is what I have right now (you se only adding timestamp, not included sub folders):</p>
  <pre><code>@echo off
  
  for /f &quot;delims=&quot; %%a in ('wmic OS Get localdatetime  ^| find &quot;.&quot;') do set dt=%%a
  set YYYY=%dt:~0,4%
  set MM=%dt:~4,2%
  set DD=%dt:~6,2%
  set HH=%dt:~8,2%
  set Min=%dt:~10,2%
  set Sec=%dt:~12,2%
  
  set stamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%
  
  SET NETWORKSOURCE=\\lfnas22204\home\lfab_1\B9988\SYSTEM\Desktop\&quot;AMA Filter 2021&quot; 
  REN %NETWORKSOURCE% /S.xml &quot;????????????????????????????????????????????????? - %stamp%.xml&quot;
  </code></pre>
  <p>pause</p>