Re: LEP that will quit Chrome?

2019-03-03 Thread Keith Goebel via 4D_Tech
Chip and Lutz,
Delayed thanks for your ideas.
I have had no luck so far, but have been pulled off that task for something 
else so have been unable to keep trying.
Thanks anyway.
Cheers, Keith
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: LEP that will quit Chrome?

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
A correction: At least in Windows Server 2008 *R2* Powershell is pre-installed.
So I think it is the same with Windows 7.

> Can't speak for Windows7 for sure, but in all newer versions it is
> integrated.
>
> >
> > is powershell now (win7+ standard?

Regards
Lutz
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: LEP that will quit Chrome?

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
Can't speak for Windows7 for sure, but in all newer versions it is
integrated.

> 
> is powershell now (win7+ standard?


--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: LEP that will quit Chrome?

2019-03-01 Thread Chip Scheide via 4D_Tech
is powershell now (win7+ standard?
CHip

On Fri, 1 Mar 2019 08:53:08 +, Epperlein, Lutz (agendo) via 4D_Tech 
wrote:
> We use powershell.
> In powershell you can do
> 
> Get-Process chrome
> 
> And if you want to kill the process:
> 
> Get-Process chrome | Stop-Process
> 
> Calling with LEP can do this way:
> 
> $vtxtBatchName:="powershell.exe -executionpolicy remotesigned 
> -OutputFormat Text "+\
>   "-File \""+$PathToScript+"\""+$parameter
> LAUNCH EXTERNAL PROCESS($vtxtBatchName;$standard_input_x;$standard_output_x\
>;$standard_error_x)
> 
> In this case you have to write a small script in beforehand.
> 
> Another way of calling powershell commands with LEP is using the 
> standard input of the shell:
> 
> $command:="cd '"+Get 4D folder(Logs folder)+"'; $chdate = Get-Date "
> $psScript:="powershell -NoProfile -Command -"
> CONVERT FROM TEXT($command;"UTF-8";$standard_input_x)
> LAUNCH EXTERNAL 
> PROCESS($psScript;$standard_input_x;$standard_output_x;$standard_error_x)
> 
> 
> HTH
> Lutz
> 
> --  
> Lutz Epperlein  
> --
> Agendo Gesellschaft für politische Planung mbH
> Köpenicker Str. 9
> 10997 Berlin
> http://www.agendo.de/
> --
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: LEP that will quit Chrome?

2019-03-01 Thread Epperlein, Lutz (agendo) via 4D_Tech
We use powershell.
In powershell you can do

Get-Process chrome

And if you want to kill the process:

Get-Process chrome | Stop-Process

Calling with LEP can do this way:

$vtxtBatchName:="powershell.exe -executionpolicy remotesigned -OutputFormat 
Text "+\
"-File \""+$PathToScript+"\""+$parameter
LAUNCH EXTERNAL PROCESS($vtxtBatchName;$standard_input_x;$standard_output_x\
   ;$standard_error_x)

In this case you have to write a small script in beforehand.

Another way of calling powershell commands with LEP is using the standard input 
of the shell:

$command:="cd '"+Get 4D folder(Logs folder)+"'; $chdate = Get-Date "
$psScript:="powershell -NoProfile -Command -"
CONVERT FROM TEXT($command;"UTF-8";$standard_input_x)
LAUNCH EXTERNAL 
PROCESS($psScript;$standard_input_x;$standard_output_x;$standard_error_x)


HTH
Lutz

--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**