Environment Variables and Global Signals

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Environment Variables and Global Signals >

Environment Variables and Global Signals

EVS. - Environment Variable Set

Previous Top Next


MiniRobotLanguage (MRL)

 

EVS. Command

Environment Variable Set

 

 

Intention

 

Sets or clears an Environment Variable entry. Depending on parameters these can be from the local or from the global Environment variables table.

 

 

 

The global Environment table is been read directly out of 32-bit registry:

 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

 

 

 

 

Syntax

 

 

EVS.P1|P2[|P3]

 

 

Parameter Explanation

 

P1 - (in) is taken as name for the environment-variable to use.

P2 - (in) this is the value that is stored in P1

 

P3 - Options

 g - (gobal) write String from global Environment-table instead

 to local Application Table.

 t - (table)  writes String to local Application Table instead

 of to global Environment-table

 

 

 

 

Example

 

'**********************************************

' EVG./EVS. - Sample

'**********************************************

'DBM.2

' Get %SystemRoot%

EVG.SYSTEMROOT|§§VAR

PRT.Systemroot=>§§VAR

PRT.===========================================

' EVS. without opt writes a global Environment variable

EVS.MyVar|MyValue

EVG.MyVar|§§RES|g

PRT.§§RES

PRT.===========================================

' EVS. with opt t writes a local Environment variable

EVS.MyVar|MyValue|t

EVG.MyVar|§§RES

PRT.§§RES

PRT.===========================================

DMP.4

 

 

 

:over

MBX.Halt to read output

'**********************************************

 

 

 

Remarks

 

-

 

 

Limitations:

 

The global environment table is read from 32-bit registry.

 

 

See also:

 

    EVE. - Environment Variable Expand

    EVG. - Environment Variable Get