title: Get output on shell execute in js with ActiveXObject
body: <p>i tried to get exe file callback result when i doing shell execute like this:</p>
  
  <pre><code>var oShell = new ActiveXObject("WScript.Shell");
  var args = folderName + "\\dir\\scan.exe scan " + params.join(" ");
  var ret = oShell.Run(args ,0 ,true);
  </code></pre>
  
  <p>but ret gaves me 0 for fail and 1 for success.
  when i run the file in the cmd like this:</p>
  
  <p>scan.exe arg1 arg2 arg3</p>
  
  <p>this is return the correct result that i wanted : "test/test" and not 1...</p>
  
  <p>what can i do?</p>
  
  <p>tnx a lot</p>