abbhishek Posted August 18, 2007 Share Posted August 18, 2007 hi i have just added a folder options and network connections icon in my my computer window through a registry tweak .i wanted to know that how can i change the icons being displayed for them. where are these icons located and the files containing them.i want to include these in my UA cd so that the changed icons are displayed as default....... Link to comment Share on other sites More sharing options...
abbhishek Posted August 20, 2007 Author Share Posted August 20, 2007 somebody plese help please.................... Link to comment Share on other sites More sharing options...
massilliaman Posted August 29, 2007 Share Posted August 29, 2007 (edited) netshell.dll but i'm not sure Edited August 29, 2007 by massilliaman Link to comment Share on other sites More sharing options...
MJS__UXlGdK%T39ZC Posted October 31, 2007 Share Posted October 31, 2007 Hi,1)Folder icons in Windows XP are referenced within a hidden "DESKTOP.INI" filelocated within each folder that requires some customization,for example (typical contents):-----[.ShellClassInfo] IconFile=.\`~`.ico IconIndex=0 InfoTip= Folder description-----Notice the relative file path I used within the "IconFile=" statement (going back to DOS days)which allows me to keep the icon with the folder when it is moved or copied.The icon: 0.ico is in a sub-folder called: `~`The single dot represents the current directory,(the current path folder whose icon you want to change)A double dot means up-one-directory.2)Once you create and edit the "desktop.ini" file,you now have to switch the folder's attribute to READ ONLY.This this the tricky and STUPID part.In Windows XP, the READ ONLY attribute for a folder has been re-definedto mean DISPLAY ICON (it no longer has anything to do with write protection)Changing this attribute through RIGHT-CLICK ---> PROPERTIES has no effect on folders.For ordinary files ----> the "R" attribute behaves as expectedFor folders ----> the "R" attribute triggers the processing of the "DESKTOP.INI file"3)The big problem is setting the folder's "R" attribute which CANNOT be done through file properties.The only way to explicitly control this flag is from the command prompt, or through a *.BAT file script.Here is a typical batch file that sets up folder icons, this batch file is run from a SUB-FOLDER,which contains the icons you want to use:@echo offecho.echo.echo Creating ICON settings for parent directory ...echo.ATTRIB .. +R > nul:ATTRIB ..\desktop.ini -H -S -R > nul:DEL ..\desktop.ini > nul:echo [.ShellClassInfo] > ..\desktop.iniecho IconFile=.\`~`.ico >> ..\desktop.iniecho IconIndex=0 >> ..\desktop.iniecho InfoTip= 'No Info' >> ..\desktop.ininotepad ..\desktop.ini > nul:ATTRIB ..\desktop.ini +H +S +R > nul:The batch file sets the "R" attribute for the parent folder (..)Unprotects and deletes any existing DESKTOP.INI filecreates a generic DESKTOP.INI fileand spawns the notepad editor.4)Note that the DESKTOP.INI file in Windows XP performs many other obsecure and idiotic functions,including setting up special folders and executing arbitrary code the instant that a folder is openedor even select. (Great way to trigger malware)My batch file will reset all that crap.If you want to keep it, edit the INI file manually.5)Also note thatCustomising a folder from the (right-click) context menu DOES set this "R" attribute flag implicitly,but this menu option is NOT available for system related folders.6)The above method of explicitly creating the DESKTOP.INI fileand forcing the "R" attribute from a batch file (or the command prompt)works for ALL windows folders, including:"Program Files","Windows","System" "Recycle Bin","System Volume Information"etc.providing you give yourself sufficient priv's to access the folder in the first place.7)You can also set custom hard drive icons in the registry, for each hard drivecreate a sub-sub-sub-sub-key in the registry under:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\e.g.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultIconHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultIconHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\E\DefaultIconThen set the default value of type "sz" equal to the icon path.here is a sample registry file that does this automatically,assuming that the icons are on drive E:SetMyIcons.reg:======Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\A][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\A\DefaultIcon]@="E:\\`~`\\Flop003a.ico"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultIcon]@="E:\\`~`\\BOOT.ICO"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultIcon]@="E:\\`~`\\HOUSE21.ICO"=======note that the double backslashes in the *.reg file actually create a single slash in the registry.Finally, for the remaining icons, which you cannot set (or I do not know how to),creat a shortcut: select object, copy, paste short-cutand then change the shortcut icon "right click"---PROPERTIES ...Good luckHD_Icons.reg Link to comment Share on other sites More sharing options...
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