User Guide

Chapter 1: ColdFusion Tags 177
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>
CFREGISTRY ACTION="Set"
Use CFREGISTRY with the Set action to add a registry key, add a new value, or update
value data.
Syntax <CFREGISTRY ACTION="Set"
BRANCH="branch"
ENTRY="key or value"
TYPE="value type"
VALUE="data">
BRANCH
Required. The name of the registry branch containing the key or value to be set.
ENTRY
Required. The key or value to be set.
TYPE
Optional. The type of data you want to set:
String Set a string value (default).
DWord Set a DWord value.
Key — Create a key.