Purpose: collect tips, techniques, and suggestions for making careful use of the Windows registry extension http://www.purl.org/tcl/home/man/tcl8.4/TclCmd/registry.htm ---- [Windows Registry Browser] is an example of use of the registry extension. ---- There's more at [Microsoft Windows and Tk]. Among the most interesting: * [Register file types under Windows] shows how to choose a file extension and assign it to your application. * [Windows: getting desktop properties] shows how to get the attributes of the system desktop so that your app's look and feel can be configured to match. ---- [Chin Huang] offers an example: "this Tcl script lists the programmatic identifier (ProgID) of all [COM] classes that have a ProgID. package require registry set classesRootKey "HKEY_CLASSES_ROOT\\CLSID" foreach clsid [registry keys $classesRootKey] { set clsidKey "$classesRootKey\\$clsid" set progIdSubKey [registry keys $clsidKey "VersionIndependentProgID"] if {[llength $progIdSubKey] > 0} { set progId [registry get "$clsidKey\\$progIdSubKey" ""] puts $progId } } " ---- Back to [Tcl core extension syntax]. [Tcl syntax help] - [Category Command]