Allows to run a PC application.
Option (0, 1 or 2) follows the command to tell demon what event to wait for, before sending message to the server.
• Option 0 : demon waits until application job finishes to send message back to the server.
• Option 1 : demon sends the message back to the server as soon as application is launched.
• Option 2 : demon sends the message back to the server when an event is triggered by the application.
If you develop the application yourself, you may use LNCMsg library as well as the following functions :
Syntax
CHGVAR VAR(&CMD) VALUE('EXE')
CHGVAR VAR(&OPT) VALUE('[0|1|2]')
CHGVAR VAR(&PARM1) VALUE('Application [Params]')
CHGVAR VAR(&PARM2) VALUE('[Params]')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)
Parameters
Parameters |
|
Parm1 |
Application and its optional parameters command line.
|
Parm2 |
May contain parameters to transfer to application. |
Example
CHGVAR VAR(&CMD) VALUE('EXE')
CHGVAR VAR(&OPT) VALUE('0')
CHGVAR VAR(&PARM1) VALUE(' c:\path\application.exe ')
CHGVAR VAR(&PARM2) VALUE(' Parameters ')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)
Other example
LNCCMD CMD(EXE) PARM1('%TEMP%\scan.exe') +
PARM2('"C:\temp\test2.pdf" /contraste=10 +
/brillance=10 /resolution=300') OPT('2')
See also
• SHELL