Contents > CFML Reference > ColdFusion Tags > cfregistry action = "get" PreviousNext

cfregistry action = "get"

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">

Attribute

Req/Opt

Default

Description

action

Required

 

get

branch

Required

 

Name of a registry branch.

entry

Required

 

Registry value to access.

variable

Required

 

Variable into which to put value.

type

Optional

string

  • string: return string value
  • dWord: return DWord value
  • key: return key's default value

If the value does not exist, cfregistry 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>

Contents > CFML Reference > ColdFusion Tags > cfregistry action = "get" PreviousNext

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a23.htm