title: Folder and subfolder copy at MSDOS
body: <p>I have a folder with 9500 documents inside(let's call if folder1). I want to make a copy of this folder with the structure it have but i want in the new folder(let's call it folder2) all the documents to be blank. Folder1 contains several type of documents. Untill now i have as code :</p>
  
  <pre><code>@echo off
  set "source=C:\Users\DM\Desktop\folder1\*.*"
  set "dest=C:\Users\DM\Desktop\folder2"
  
  xcopy "%source%" "%dest%" /t/e
  for /f "tokens=2 delims=&gt;" %%a in ('xcopy "%source%" "%dest%" /s/h/e/k/f/c/l') do (
  for /f "tokens=*" %%b in ("%%a") do type nul &gt;"%%b"
  )
  pause
  </code></pre>
  
  <p>The bat goes ok, but after a while there are 3 different errors on the cmd and it stacks there (my windows are greek so i'm trying to translate the errors). One is that "memory is not enough" , the next one is "The system cannot locate the disk(or drive) path specified"   (it's one of the two drive/disk i think.) and the last one is "File name syntax, directory or volume label is incorect". It stops at a specific htm file that has "&lt;>" characters on the title.</p>
  
  <p>Can you please tell me what should i add? 
  Thanks in advance</p>