SetRegistry()

Description

SetRegistry() is used to create or set registry values under Windows 95 or Window NT.

Call Signature

int SetRegistry ( string registry_key, string registry_value )

Return Value

int

A non-zero value is returned for success. 0 is returned for failure.

Arguments

string registry_key:

A string expression evaluating to a registry key to be set or created. All windows registry can be set.

string registry_value:

A string expression containing the information to put in the registry.

Remarks

This intrinsic has no effect on other platforms.

Example


 if( SetRegistry("HKEY_CURRENT_USER/Software/PCI/MyRegistry/IMAGERY", \
                "/PCI/user/imagery") > 0 ) then
   print "IMAGERY Registry has been set"
 endif

See also

Registry functions

GetRegistry()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.