marfdaman Posted June 30, 2006 Posted June 30, 2006 Well, I believe this has been done before, but I couldn't find any post in the ~8 pages I went through, so... How do you get the .ico file used for a file. For example Windows Explorer knows what icon to use for folders/files, but also for executables. Any idea? Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
randallc Posted June 30, 2006 Posted June 30, 2006 Hi, Example funcs in my sig in "Explorer" and GUICtrlListView. Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
marfdaman Posted June 30, 2006 Author Posted June 30, 2006 (edited) Tnx alot! The only thing I don't understand yet is how you get the icon from a exe file. I see that your (holger's) explorer does this correctly, but when I take out your FileGetIcon function it always returns 0 for .exe files (no wonder, they're not in the registry ). Could you give me a hint as to where you look for the exe icon in the explorer script? Edited July 1, 2006 by marfdaman Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
randallc Posted July 2, 2006 Posted July 2, 2006 (edited) Hi, Good question; maybe ask Holger! I'd be interested to hear and correct my scripts. Best, Randallc Edited July 2, 2006 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
randallc Posted July 2, 2006 Posted July 2, 2006 Actually, not so difficult; Before calling the FileGeticon, Holger is deininf the file; "$szIconFile=$dossierfunc&$ar_TMpImage[1]" or whatever, and I had left it as "local" undefined; this fixes my _GuiCtrlListView.au3" func for this prob. Thanks, Randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
marfdaman Posted July 2, 2006 Author Posted July 2, 2006 lol yes I see it now too I didn't know you could set the icon that way as well :"> Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now