title: Why CMD ask me, if the target is a file or folder?
body: <p>I've searching currently lots of time on the web, but i don't find the answer.</p>
  
  <p>I'm creating a folder, if not exists.</p>
  
  <pre><code>set CUR_DIR="%CD%"
  set NAME_SOURCE="Source"
  set NAME_BUILD="Build"
  
  if not exist %CUR_DIR%\%NAME_BUILD% md "%CUR_DIR%\%NAME_BUILD%\"
  </code></pre>
  
  <p>But when i try to execute it, a prompt will stop the routine:</p>
  
  <blockquote>
    <p>Does D:\test\Build specify a file name or directory name on the target
    (F = file, D = directory)?</p>
  </blockquote>
  
  <p>How i can fix this "issue"? I've tried to add a directory seperator on end and/or add quotes.</p>