# CFREGISTRY ACTION="Get"

Use CFREGISTRY with the Get action to access a registry value and store it in a ColdFusion variable.

### Syntax

    <CFREGISTRY ACTION="Get"
        BRANCH="branch"
        ENTRY="key or value"
        TYPE="data type"
        VARIABLE="variable">

#### BRANCH

Required. The name of the registry branch containing the value you want to access.

#### ENTRY

Required. The registry value to be accessed.

#### TYPE

Optional. The type of data you want to access:

- String -- Return a string value (default).
- DWord -- Return a DWord value.
- Key -- Return a key's default value.

#### VARIABLE

Required. Variable into which CFREGISTRY places the value.

### Usage

CFREGISTRY does not create the variable if the value does not exist.

### Example

    <!--- This example uses CFREGISTRY with
          the Get Action  --->

    <HTML>
    <HEAD>
    <TITLE>CFREGISTRY ACTION="Get"</TITLE>
    </HEAD>
    <BODY>
    <CFREGISTRY ACTION="Get"
      BRANCH="HKEY_LOCAL_MACHINE\Software\Microsoft\Java VM"
      ENTRY="ClassPath" TYPE="String" VARIABLE="RegValue">
    <H1>CFREGISTRY ACTION="Get"</H1>
    <CFOUTPUT>
    <P>
    Java ClassPath value is #RegValue#
    </CFOUTPUT>
    </BODY>
    </HTML>