>George
>
>What value does "lcValue" have, please?
>
>Dennis
The variable can receive different looking pieces of information. For example, in my sample using the ".doc" extension, what it will have is "Word.Document.8" (on my machine). If, however, the extension was ".htm" it will contain "htmlfile".
In both instances these would be used to find the path in the registry where the "DefaultIcon" key is. In the first case, it would be:
HKEY_CLASSES_ROOT\Word.Document.8\DefaultIcon
In the second:
HKEY_CLASSES_ROOT\htmlfile\DefaultIcon
In both instances, the Default value in the key points to the source of the icon. Again, in both instances, these are executables, but could be an icon file.
With the registry class provided by the FFC, if the root hive (in this case HKEY_CLASSES_ROOT) isn't specified, then it uses HKEY_CLASSES_ROOT.
George
Ubi caritas et amor, deus ibi est