
CLI Commands
B-38
System Software for M7-300 and M7-400 Installation and Operation
C79000-G7076-C850-02
B.29 SET
Function Define an environment string
Inline command
Syntax set [<string_1>=[<string_2>]]
Description
This command defines an environment string with the CRUN function putenv. If
<String_2> is omitted, <String_1> is removed from the environment.
If the command SET is entered without parameters all current environment strings
are displayed.
Note
A separate environment is maintained for each task managed by the CRUN. You
can use environment string in CLI commands by enclosing the names in % signs,
e.g., %TEMPDIR%. You can access environment strings in programs by using the
ANSI C function getenv which is supported by the CRUN.
Example
SET TEMPDIR=C:\TEMP
Sets the environment string TEMPDIR equal to C:\TEMP.
SET TEMPDIR=
Removes the environment string TEMPDIR from the environment.
SET
Lists all current environment strings.
Commenti su questo manuale