title: Unable to execute child_process.exec() when path has spaces
body: <p>I am using <strike>appjs *</strike> and I want to execute a command to open a folder.</p>
  
  <h2>What I have</h2>
  
  <pre><code>var path = __dirname + '/folder to open/'; 
  // path = C:\Program Files\myapplication/folder to open/
  require("child_process").exec("start " + path);
  </code></pre>
  
  <h2>Error</h2>
  
  <blockquote>
    <p>Could not find file C:\Program</p>
  </blockquote>
  
  <h2>What I tried</h2>
  
  <p>I already tried to escape the spaces, that didn't work.</p>
  
  <pre><code>var path = __dirname + '/folder to open/'; 
  path = path.replace(' ', '\ ');
  // path = C:\Program Files\myapplication/folder to open/
  require("child_process").exec("start " + path);
  </code></pre>
  
  <p>When I put the path between quotes, No folder is opened, only another prompt.</p>
  
  <pre><code>var path = "\"" + __dirname + "/folder to open/\"";
  path = path.replace(' ', '\ ');
  // path = "C:\Program Files\myapplication/folder to open/"
  require("child_process").exec("start " + path);
  </code></pre>
  
  <p>Related bug <a href="https://github.com/isaacs/npm/pull/2479" rel="noreferrer">https://github.com/isaacs/npm/pull/2479</a></p>
  
  <p>Does anyone has a fix or a workaround?</p>
  
  <p>* link removed</p>