CFREGISTRY ACTION = "SET" |
Description
Adds a registry key, adds a value, or updates a value.
Syntax
    <cfregistry
       action = "set"
       branch = "branch"
       entry = "key or value"
       type = "value type"
       value = "data">
Usage
If it does not exist, cfregistry creates the key or value.
Example
    <!--- 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>

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)