[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-user
Subject: Re: [Qgis-user] Windows BATCH-File Start
From: Bo Victor Thomsen <bo.victor.thomsen () gmail ! com>
Date: 2021-04-28 9:23:11
Message-ID: 2dd0da44-5144-83f9-9948-bfbe8da80a0e () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi, late to the party..
However, this works on my Windows-10 64 bit / QGIS 3.18 64 bit:
the "d:/tmp/start.cmd" contains only 1 line:
@echo "%1"
You should probably change the action type from "Open" to "Generic"
Med venlig hilsen / Kind regards
Bo Victor Thomsen
Den 23-04-2021 kl. 13:40 skrev Asmus Harder:
> Hi there,
> I tried to use in QGIS 3.16 on Windows10 a old layer-action from QGIS
> 2.18.
> 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.
> In QGIS2.18 it works fine.
> 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.
> For example this work:
> "d:\Test_Batch_Aufruf.bat"
> but this doesn't work:
> "d:\Test_Batch_Aufruf.bat" "Hello"
> If I use a exe-file it works with a parameter.
> For example this work fine:
> "c:\Program Files\IrfanView\i_view64.exe" "D:\50342_col.tif"
> Any idea why the BATCH-file doesn't start with parameter?
> greetings
> Asmus
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Attachment #5 (multipart/related)]
[Attachment #7 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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>
</body>
</html>
["albbigahmobfbkgp.png" (image/png)]
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic