title: Create folder when dir not exist cmd
body: <p>I have a stupid problem but i don't know where i have error. My batch script:</p>
  <pre><code>    D:
      cd D:\Kafka\bin\windows
  If exist D:\Kafka\test\dir\dir1 
  ( Echo &quot;a&quot; )
  Else ( mkdir D:\Kafka\test\dir\dir1 )
  </code></pre>
  <p>I get a syntax error but i don't know where.</p>