As you guessed, the icon locations are stored in the registry. There's a key under HKEY_CLASSES_ROOT for each registered file type, with a default value holding the class name. Under the class name, there's a DefaultIcon key that gives the path to the icon. Using python files an an example, you have HKCR\.py with Default=Python.File, and under HKCR\Python.File\DefaultIcon, you should have the path to py.ico. You can use the _winreg module to create your own entries.
hth Roger "c d saunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings All, > In Widows Explorer there is a thumbnail view, where you see images as > thumbnails. > Applications such as MS Office and OpenOffice, when installed, cause their > respective filetypes > to be previewed as thumbnails as well. > > Thumbnails are stored in the Thumbs.db hidden file. > > There my knowledge ends. I'm asuming that aplications install registry keys > somewhere that > register an invocation that returns a thumbnail for a given file bit this is > just a guess. > > What I'd like to do is write some Python script that can be invoked to add > thumbnails for > certian file types (my own custom types and things like the .FITS array > format.) > > Googling isn't going anywhere so I am hoping there are some wizards out there > with poiters... > > Specifically any information on how the thumbnail system works would be great! > > Cheers, > Chris ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= East/West-Coast Server Farms - Total Privacy via Encryption =--- -- http://mail.python.org/mailman/listinfo/python-list