title: Node Child Process Exec Command Failed with error code 1
body: <p>I am trying to execute some line using node js child process and getting error.
  Following is my code:</p>
  
  <pre><code>let cmd : string = "code " + PROJECTS[value];
  exec(cmd, function callback(error, stdout, stderr) {
    console.log("started console app");
  });
  </code></pre>
  
  <p><strong>ERROR :</strong></p>
  
  <pre><code>cmd:"C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\code-settings-syn... (length: 82)"
  code:1
  killed:false
  message:"Command failed: C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\c... (length: 99)"
  signal:null
  stack:undefined
  </code></pre>
  
  <p>Detail of error JSON.</p>
  
  <pre><code>Full CMD : "C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\code-settings-sync""
  Full message : "Command failed: C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\code-settings-sync"\n"
  </code></pre>