Possible to give a non-exe file a unique icon?

Everything else that doesn't fall into one of the other PB categories.
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Possible to give a non-exe file a unique icon?

Post by Seymour Clufley »

I don't know whether this question is really dumb or not.

I'm making a program to save a webpage to the MHT format. A few hours ago it occurred to me it'd be really cool if the resulting file had an icon based on the website's favicon ('the website' being the site where the page was saved from).

Is this just pie in the sky or would there be a way?
..::Origin::..
Enthusiast
Enthusiast
Posts: 125
Joined: Sat Jun 17, 2006 3:15 pm

Post by ..::Origin::.. »

Hi Seymour,

I'm assuming you're operating on a windows system of some sort. If so, you are able to achieve this with the use of registry keys. I suggest you have a search with http://www.google.com for a "howto" method.

Regards,
Origin
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

It's not a dumb question, but you know that windows internet explorer and other browsers will already save a web page to MHTML format don't you?
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Post by Seymour Clufley »

Origin, if the way to do it involves registry keys, does that mean that the file would only appear with the unique icon on one computer?


SFSx01: Yes, I know IE can save to MHTML. In fact a while ago NetMaestro showed me how to programatically "hook" IE and get it to perform the task. But for various reasons I want to code the task myself in PB.

One reason is that hooking IE will fail if IE is not running in English. This is because the method involves selecting a combobox item containing the text "Web Archive, single file (*.mht)".

Another reason is, if it's done in PB it will be a step towards a cross-platform solution. (How I wish the PB team would implement WebKit for the webgadget!)
Post Reply