View comments | RSS feed
Contents > CFML Reference > ColdFusion Tags > cfregistry action = "set" PreviousNext

cfregistry action = "set"

Adds a registry key, adds a value, or updates a value.

<cfregistry 
action = "set"
branch = "branch"
entry = "key or value"
type = "value type"
value = "data">

Attribute

Req/Opt

Default

Description

action

Required

 

set

branch

Required

 

Name of a registry branch.

entry

Required

 

Key or value to set.

type

Optional

 

  • string: set a string value (default).
  • dWord: set a DWord value.
  • key: create a key.

value

Optional

 

Value data to set. If you omit this attribute, cfregistry creates default value, as follows:

  • string: creates an empty string: ""
  • dWord: creates a value of 0 (zero)

If it does not exist, cfregistry creates the key or value.

<!--- This example uses cfregistry Set Action to modify registry value data --->
<!--- Normally you pass in a file name instead of setting one here. --->
<cfset FileName = "dummy.cfm">
<cfregistry action = "set"
 branch = "HKEY_LOCAL_MACHINE\Software\cflangref"
 entry = "LastCFM01" type = "String" value = "#FileName#">
<h1>cfregistry action = "set"</h1>

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

ColdFusion 9 | 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.

Comments


BankruptBeaker said on Oct 22, 2004 at 9:36 AM :
This code does not seem to work. It executes without throwing any exception, however, when I peek at the registry, the value can't be found!
Reported this.

 

RSS feed | 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-a24.htm