Return to site

Exe wrapper icon changer

broken image

The first is called FolderIcon, which orchestrates the steps. To accomplish these steps, I created two classes. Set the Target Folder's attribute to 'System'.Create a desktop.ini file inside the folder for which to create the icon (the 'Target Folder').There are basically two steps involved in assigning an icon to a folder (or possibly three steps, if you count creating the folder): If you wish to just try out the sample application, simply open the FolderIcons.sln solution file and build or run it within the Visual Studio IDE. However, to accomplish the final goal, the first problem to solve is that of assigning an icon to a folder - and that seemed to be an interesting enough topic in itself to write an article about. The discussion we were having about this topic was one part of a larger endeavor, and that will be the source of a future article. It turns out that not only is there a way to do it, but it's also a fairly easy task to handle. In the course of a discussion I was having with a UI Engineer I work with, he was relating that he discovered how to create an icon for a folder in Windows Explorer (Select Folder: Properties: Customize Tab: Change Icon.), and I got to thinking, 'There must be a way to do that programmatically'. This article discusses a simple class that can be used for assigning an icon to a folder that displays in Windows Explorer.

broken image