Use CFREGISTRY 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" TYPE="data type" VARIABLE="variable">
Required. The name of the registry branch containing the value you want to access.
Required. The registry value to be accessed.
Optional. The type of data you want to access:
Required. Variable into which CFREGISTRY places the value.
CFREGISTRY does not create the variable if the value does not exist.
<!--- 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>