If there is more than one icon in the file, the path should be followed by a comma, and then the index of the icon. Now all you have to do is to restart your computer. Create a file Autorun.inf (This can be done by making a notepad and then renaming it to Autorun.inf) and edit it with the same lines as shown in the image below. HKEY_CLASSES_ROOTĪny file that contains an icon is acceptable, including. Now chose an icon, and rename it to Drive.ico. The icon just shows a blank icon, rather than the proper icon image it used to show. The above action will open the default Windows Icons list. Here, click on the button next to the Default Icon field. The MyProgram.1 ProgID subkey is then assigned the custom default icon. I have created a small file in Notepad and saved it on the desktop. In the application, find the file type you are looking for, right-click on it and select Edit Selected File Type option. Based on the powerful editing component Scintilla, Notepad is written in C and. Running in the MS Windows environment, its use is governed by GNU General Public License. myp file name extension is first associated with the MyProgram.1 application. Notepad is a free (as in free speech and also as in free beer) source code editor and Notepad replacement that supports several languages. The following example shows a detailed view of the registry entries that are required for an application icon assignment. The file name extension is associated with an application, but the icon assignment is to the file name extension itself so that the associated application does not dictate the default icon. The following example shows a detailed view of the registry entries that are required for a file-type icon assignment. Step 3:Ĭall the SHChangeNotify function to notify the Shell to update its icon cache. For an application assignment, HKEY_CLASSES_ROOT\ ProgIDĪssign the DefaultIcon subkey a default value of type REG_SZ that specifies the fully qualified path for the file that contains the icon.For a file-type assignment, HKEY_CLASSES_ROOT\.Icons can also be assigned on an application-specific basis.Ĭreate a subkey named DefaultIcon in one of the following two locations: I have created a small file in Notepad and saved it on the desktop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |