SHELL
|
Syntax: |
SHELL[(<Macroname>)] <Command> [,<Only
1 macro call>]
|
||||||
|
|
|
||||||
|
Meaning: |
Executes a shell command. If a <Macroname> is specified, the
standard output of the command is redirected to the program: With each output
line the Macro <Macroname> is executed if <Only 1 macro call> = 0
or the parameter is missing. EBUS_STDOUT$ contains the line and EBUS_DATA = -1 if it is an error outpt (Stderror), and EBUS_DATA = 0, if it is a standard output of the command. If <Only 1 macro call> <> 0 the
macro <Macroname> is executed only once after the <Command> has
been executed. EBUS_STDOUT$ contains all standard outputs separated by EBUS_LINEFEED$. The switch ENABLE
/ DISABLE WAITSHELL controls whether
the program waits until the execution of the command is terminated or whether
it continues immediately. |
||||||
|
Parameter: |
|
||||||
|
Sample: |
SHELL "dir *.dat /W" SHELL "cmd /c batch.bat" |
||||||
|
See also: |
|