title: Jscript create folder if not exist
body: <p>I am trying to create folder when it does not exist. If folder is exist it will skip and continue to create the next folder.</p>
  
  <p>Which part is wrong in this following code,</p>
  
  <h2>Error</h2>
  
  <pre><code>Micrsoft Jscript runtime error: File already exists
  </code></pre>
  
  <h2>Code</h2>
  
  <pre><code>   function CreateFolder(fldr)
      {
         if (fso.FolderExists(fldr)){
            return;
            }
         else 
          fso.CreateFolder("C:\\"+ fldr);
      }
  </code></pre>