title: mklink: symlink to batch file not running batch file
body: <p>The problem here is that, after creating a symlink to a batch file, the link does not run the batch file. Example:</p>
  
  <pre><code>mklink x x.cmd
  </code></pre>
  
  <p>When clicking on <code>x</code> it opens <code>x.cmd</code> in Notepad! Ordinary shortcuts (.lnk-files) work as expected. </p>
  
  <pre><code>&gt; ftype cmdfile
  cmdfile="%1" %*
  &gt; assoc .cmd
  .cmd=cmdfile
  </code></pre>
  
  <p>So each .cmd-file should run itself.</p>
  
  <p>Is there a solution?</p>