title: Chrome native messaging cannot execute batch file
body: <p>Here is the manifest of my host :</p>
  
  <pre><code>{
     "allowed_origins" : 
      [ 
          "chrome-extension://EXTENSION_ID/"
      ],
     "description" : "my.app.host",
     "name" : "my.app.host",
     "path" : "‪C:\\chromejar\\launch.bat",
     "type" : "stdio"
  }
  </code></pre>
  
  <p>Here is the content of my launch.bat file :</p>
  
  <pre><code>setlocal enableextensions disabledelayedexpansion
  
  for %%a in ("%~dp0\ChromeConnector.jar") do set "JARFILE=%%~fa"
      java -jar "%JARFILE%"
  pause
  </code></pre>
  
  <ul>
  <li>When I launch my Batch file separately, it works.</li>
  <li>When I launch my extension from my website using an EXE file (developed in c#), it works.</li>
  <li><p>But when I launch my extension from my website using the BAT file, it does not seem to work.</p>
  
  <ol>
  <li><p>Can I test only the BAT part of it ? (put an echo text from the BAT to see the result on my app ?)</p></li>
  <li><p>I tried to enable logging in chrome using this line : <code>start chrome --enable-logging --v=1</code> but no particular log seems to be found in <code>AppData\Local\Google\Chrome\User Data\chrome_debug.log</code>, Do I need to add something to log particular errors ?</p></li>
  <li><p>My Java code is as simple as this for the moment :</p></li>
  </ol>
  
  <p><code>public static void main(String[] args) {
      while(true) { }
  }</code></p></li>
  </ul>
  
  <p>Is there another way to test the jar application ?</p>
  
  <p>Thanks in advance</p>