title: how to write bat file to process all files include sub directory, and output them with the same directory structure to another directory?
body: <p>I have a bat file to process all file under a directory, and output to another directory</p>
  
  <p>this is the codes in the bat file</p>
  
  <pre><code>@set dir1=mulit-simp\
  @set dir2=mulit-trad\
  @cd /d %~dp0
  @if not exist %dir1% md %dir1%
  @if not exist %dir2% md %dir2%
  @for /f "delims=" %%i in ('dir %dir1%*.* /b') do @opencc.exe --input="%dir1%%%i" --output="%dir2%%%i"
  @echo.
  @echo Done!
  @echo.
  @pause
  </code></pre>
  
  <p>but this code can't process files in the sub directory
  How could I process the sub directory files, and output them with the same directory structure to another directory?
  thx for help :)</p>