178
VALUE
Optional. The value data to be set. If you omit this attribute, CFREGISTRY creates
default value data, as follows:
String — Default value is an empty string: ""
DWord — Default value is 0 (zero)
Usage
CFREGISTRY creates the key or value if it does not exist.
Example
<!--- This example uses CFREGISTRY with
the Set Action to modify
registry value data --->
<HTML>
<HEAD>
<TITLE>CFREGISTRY ACTION="Set"</TITLE>
</HEAD>
<BODY>
<!--- 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>
</BODY>
</HTML>
CFREGISTRY ACTION="Delete"
Use CFREGISTRY with the Delete action to delete a registry key or value.
Syntax
<CFREGISTRY ACTION="Delete"
BRANCH="branch"
ENTRY="keyorvalue">
BRANCH
Required. Specifies one of the following:
For key deletion — The name of the registry key to be deleted. To delete a key,
do not specify ENTRY.
For value deletion — The name of the registry branch containing the value to be
deleted. To delete a value, you must specify ENTRY.
ENTRY
Required for value deletion. The value to be deleted.
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers