title: using command line in javascript
body: <p>I know there are lots of questions about this already, but i cant seem to find one that works for me.</p>
  
  <p>I am trying to launch a local file from a local html using cmd to pass command to launch file but it does not seem to work.</p>
  
  <p>This is what i used so far:</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
  function RunFile() {
  window.open('C:/Windows/System32/cmd.exe /c START %temp%/file.cpl');
      }
      &lt;/script&gt;
  </code></pre>
  
  <p>someone pls help with this.</p>
  
  <p>Lets just asume i can do this on IE <code>window.open('C:/Windows/System32/cmd.exe);</code> and it will open cmd.
  My question is how do i pass some extra argument to make the cmd open my file from another location e.g. <code>window.open('C:/Windows/System32/cmd.exe /c START %temp%/file.cpl');</code></p>