Enumerations Commands (FEX)

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > FEX. - Enumerations >

Enumerations Commands (FEX)

FER. - For Each Registry

Previous Top Next


MiniRobotLanguage (MRL)

 

FER. Enumeration Command

For each Registry

 

 

Intention

 

Enumerate registry entries. These can be Registry-keys or values.

 

The result is delivered as a Array which is placed in the FEX-Variable.

 

Use GFB. - Get-From-Block to extract the single Blocki-Elements (1-6) out of the FEX-Variable. (see example)

 

 

 

Syntax

 

 

FER.P1|P2|P3[|P4][|P5]

 

 

Parameter Explanation

 

P1 - Label where the for each will jump "for each element"

P2 - Temp. Variable, updated by FEX each round.

 

P3 - Start Registry Path

P4  - optional 1,2,4,8 or 16, default is 3

 

  1 - only get keys

  2 - only get values

  4 - use Pattern with actual key

  8 - use Pattern with actual value

 16 - use Pattern for Entry-Name

 

Values of  3 and 0 - are equal, therefore 3 is default.

 

P5 - optional Standard-Pattern

 

 

 

 

Example

 

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

' FER. - Sample

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

'DBM.2

VAR.$$REG=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

FER.doit|$$BLO|$$REG|2

:over

MBX.Halt to read output

END.

 

:doit

 

GFB.§§REA|§§REB|§§REC|§§RED|§§REE|§§REF

DBP.§§REA$crlf$§§REB

RET.

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

 

 

 

 

Remarks

 

FER. is a Member of the FEX-Family "For Each X". They are used for easy enumeration.

 

 

 

Limitations:

 

This command is currently limited to the x32-Registry.

 

 

See also:

 

    3.1 Systemvariables especially: #fex#, #fxd# . etc.

    1.6.1. Program Flow Control

    IER. / NER. - If-Exist-Registry

    FER. - For-Each-Registry

    RER. - Registry Entry Read

    REW. - Registry-Entry-Write

    RDI. - Registry-Delete-Item

    RDT. - Registry-DelTree