Re: [Qgis-user] Windows BATCH-File Start

2021-05-04 Thread Asmus
Hi Bo,
 
thanks for the reply and sorry for answer so late.
That is exactly what I want to do and what doesn't work for me.

But now I have the trick, if I choose the option "capture output" on it works.
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.
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.

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?

Thank you very much
Asmus




Am 28. April 2021 11:23:11 MESZ schrieb Bo Victor Thomsen 
:
>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
___
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


Re: [Qgis-user] Windows BATCH-File Start

2021-04-28 Thread Bo Victor Thomsen

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
___
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


Re: [Qgis-user] Windows BATCH-File Start

2021-04-27 Thread asmus.li...@gmx.de


Hi Burghardt,

I don't get it to work. There is some different between a BATCH-file and
any other application I testet.

I now use python as layer-action to start the batch file with paramter,
just these two lines:
import os
os.system(...)

Thank you
Asmus


Am 27.04.2021 um 07:22 schrieb burghardt.scho...@stadt.wolfsburg.de:

Hi Asmus,

perhaps you may need to include the call in a powershell script.

Regards
Burghardt

-Ursprüngliche Nachricht-
Von: asmus.li...@gmx.de [mailto:asmus.li...@gmx.de]
Gesendet: Dienstag, 27. April 2021 07:15
An: Scholle, Burghardt (15-3 GIS); qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Windows BATCH-File Start

Thanks Burghardt,

no, it don't work. It is still not posible to start a batch file with some 
paramter as a layer-action.
Any other hints?

Regards
Asmus


Am 26.04.2021 um 07:09 schrieb burghardt.scho...@stadt.wolfsburg.de:

Hi Asmus,

I think on Windows 10 you need to prefix your command with
"C:\Windows\System32\cmd.exe".

Hope this helps.

Regards

Burghardt

*Von:*Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *Im Auftrag
von *Asmus Harder
*Gesendet:* Freitag, 23. April 2021 13:41
*An:* qgis-user@lists.osgeo.org
*Betreff:* [Qgis-user] Windows BATCH-File Start

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


Re: [Qgis-user] Windows BATCH-File Start

2021-04-26 Thread Burghardt.Scholle
Hi Asmus,

perhaps you may need to include the call in a powershell script.

Regards
Burghardt

-Ursprüngliche Nachricht-
Von: asmus.li...@gmx.de [mailto:asmus.li...@gmx.de] 
Gesendet: Dienstag, 27. April 2021 07:15
An: Scholle, Burghardt (15-3 GIS); qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Windows BATCH-File Start

Thanks Burghardt,

no, it don't work. It is still not posible to start a batch file with some 
paramter as a layer-action.
Any other hints?

Regards
Asmus


Am 26.04.2021 um 07:09 schrieb burghardt.scho...@stadt.wolfsburg.de:
>
> Hi Asmus,
>
> I think on Windows 10 you need to prefix your command with 
> "C:\Windows\System32\cmd.exe".
>
> Hope this helps.
>
> Regards
>
> Burghardt
>
> *Von:*Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *Im Auftrag 
> von *Asmus Harder
> *Gesendet:* Freitag, 23. April 2021 13:41
> *An:* qgis-user@lists.osgeo.org
> *Betreff:* [Qgis-user] Windows BATCH-File Start
>
> 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


Re: [Qgis-user] Windows BATCH-File Start

2021-04-26 Thread asmus.li...@gmx.de

Thanks Burghardt,

no, it don't work. It is still not posible to start a batch file with
some paramter as a layer-action.
Any other hints?

Regards
Asmus


Am 26.04.2021 um 07:09 schrieb burghardt.scho...@stadt.wolfsburg.de:


Hi Asmus,

I think on Windows 10 you need to prefix your command with
"C:\Windows\System32\cmd.exe".

Hope this helps.

Regards

Burghardt

*Von:*Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *Im Auftrag
von *Asmus Harder
*Gesendet:* Freitag, 23. April 2021 13:41
*An:* qgis-user@lists.osgeo.org
*Betreff:* [Qgis-user] Windows BATCH-File Start

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


Re: [Qgis-user] Windows BATCH-File Start

2021-04-25 Thread Burghardt.Scholle
Hi Asmus,

I think on Windows 10 you need to prefix your command with 
"C:\Windows\System32\cmd.exe".
Hope this helps.

Regards
Burghardt


Von: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Asmus 
Harder
Gesendet: Freitag, 23. April 2021 13:41
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Windows BATCH-File Start

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


[Qgis-user] Windows BATCH-File Start

2021-04-23 Thread 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