Accesses a registry value and stores it in a ColdFusion variable.
<cfregistry
action = "get"
branch = "branch"
entry = "key or value"
variable = "variable"
type = "data type">
Using Persistent Data and Locking in ColdFusion MX Developer's Guide
Attribute | Req/Opt | Default | Description |
---|---|---|---|
action |
Required |
|
Always |
branch |
Required |
|
Name of a registry branch. |
entry |
Required |
|
Registry value to access. |
variable |
Required |
|
Variable into which to put value. |
type |
Optional |
string |
|
If the value does not exist, the cfregistry
tag does not create an entry.
<!--- This example uses cfregistry with the get action. ---> <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>