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:[email protected]
**********************************************************************

Reply via email to