Allows to run DOS Commands, open documents or launch the execution of programs on the PC.
Syntax
CHGVAR |
VAR(&CMD) VALUE('SHELL') |
CHGVAR |
VAR(&PARM1) VALUE('DOC command | Document name') |
CHGVAR |
VAR(&PARM2)
VALUE(' ; Focus=True / False ; Minimize= True / False |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
DOS
command to run on Windows station,
|
Parm2 |
Wait
= True
/ False / Number.
Errorlevel = True
/ False.
Visible = True
/ False. Default = False.
Focus = True
/ False. Default = True.
Minimize
=True
/ False. Default = False.
OpenDocument = True
/ False. Default = False.
Directory = Sets default directory of command to process, or document to open.
Action =
Indicates a particular action to apply to a document.
|
Note
For some applications, like Internet Explorer, it is not possible to wait for the end of the command processing. Whatever you set for the Wait option, the command will be launched, and your process will continue immediately.
Examples
In this example a file is copied from a directory to another.
CHGVAR |
VAR(&CMD) VALUE('SHELL') |
CHGVAR |
VAR(&PARM1) VALUE('COPY \Templates\Invoice.doc C:\Temp\Invoice.doc') |
CHGVAR |
VAR(&PARM2) VALUE('ErrorLevel') |
CALL |
PGM(LNCCMD)
PARM(&HANDLE &CMD &OPT &PARM1 + |
In this example a Windows station is connected to a Web site.
CHGVAR |
VAR(&CMD) VALUE('SHELL') |
CHGVAR |
VAR(&PARM1) VALUE('http://www.easycom-aura.com’) |
CHGVAR |
VAR(&PARM2) VALUE('OpenDocument') |
CALL |
PGM(LNCCMD)
PARM(&HANDLE &CMD &OPT &PARM1 + |
In this example an HTML page is opened using the default navigator.
CHGVAR |
VAR(&CMD) VALUE('SHELL') |
CHGVAR |
VAR(&PARM1) VALUE('\Pages\Document.htm') |
CHGVAR |
VAR(&PARM2) VALUE('OpenDocument') |
CALL |
PGM(LNCCMD)
PARM(&HANDLE &CMD &OPT &PARM1 + |