Used with the Get action to access a registry value and store it in a ColdFusion variable.
<cfregistry action = "get" branch = "branch" entry = "key or value" variable = "variable" type = "data type">
cfcookie,
cfparam,
cfsavecontent,
cfschedule,
cfset
If the value does not exist, cfregistry
does not create the variable.
<!--- 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>