<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>Hi Bo,<br> <br>thanks for the reply and sorry for answer so late.<br>That is exactly what I want to do and what doesn't work for me.<br><br>But now I have the trick, if I choose the option "capture output" on it works.<br>I don't know what this option do, I didn't used it before because I don't undestand what it is for, but it works.<br>If the option is on, no command window is open, but there opens a QGIS window which shows the output of the BATCH, and the work of teh BATCH will be done. Because of the missing command window, I thought it do not work.<br><br>Can anybody explain, what the option "capture output" do, and why the Windows BATCH do the work if the option is on, and don't do the work, if the option is off?<br><br>Thank you very much<br>Asmus<br><br><br><br><br><div class="gmail_quote">Am 28. April 2021 11:23:11 MESZ schrieb Bo Victor Thomsen <bo.victor.thomsen@gmail.com>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

    <p>Hi, late to the party..</p>
    <p>However, this works on my Windows-10 64 bit / QGIS 3.18 64 bit:</p>
    <p><img src="cid:part1.6815DFFE.CE48E4AE@gmail.com" alt="" width="498" height="561"></p>
    <p>the "d:/tmp/start.cmd" contains only 1 line: <font face="monospace"><br>
      </font></p>
    <p><font face="monospace">@echo "%1"</font></p>
    <p>You should probably change the action type from "Open" to
      "Generic"<br>
    </p>
    <pre class="moz-signature" cols="72">Med venlig hilsen / Kind regards

Bo Victor Thomsen</pre>
    <div class="moz-cite-prefix">Den 23-04-2021 kl. 13:40 skrev Asmus
      Harder:<br>
    </div>
    <blockquote type="cite" cite="mid:trinity-6a69c539-609f-456d-8ed4-51fa0264257b-1619178036521@3c-app-gmx-bs65">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>Hi there,</div>
        <div> </div>
        <div>I tried to use in QGIS 3.16 on Windows10 a old layer-action
          from QGIS 2.18.<br>
          If I cklick on one object the action should start an
          BATCH-file and gives some attributes as parameter to the
          batch-file. But it doesn't work, nothing happens.</div>
        <div>In QGIS2.18 it works fine.</div>
        <div> </div>
        <div>If I use "Open" as type and only the BATCH-File without
          parameter than the BATCH opens. If I add an parameter than
          nothing happens.</div>
        <div> </div>
        <div>For example this work:</div>
        <div>"d:\Test_Batch_Aufruf.bat"</div>
        <div>but this doesn't work:<br>
          "d:\Test_Batch_Aufruf.bat" "Hello"</div>
        <div> </div>
        <div>If I use a exe-file it works with a parameter.<br>
          For example this work fine:<br>
          "c:\Program Files\IrfanView\i_view64.exe" "D:\50342_col.tif"</div>
        <div> </div>
        <div>Any idea why the BATCH-file doesn't start with parameter?</div>
        <div> </div>
        <div>greetings<br>
          Asmus</div>
        <div> </div>
        <div> </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
  

</blockquote></div></body></html>