Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
marymari 24 ani
Femeie
24 ani
Bacau
cauta Barbat
24 - 53 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOWS] Manually Change One Or Several Folder Icons Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 739
Source:

It’s done by adding a file called desktop.ini inside the folder which tells Windows to use a different icon and where that icon is located.

Desktop.ini normally has its system and hidden attributes set so it’s hidden from view. To show the desktop.ini file in any folder go to Control Panel, open Folder Options/File Explorer Options and go to the View tab. Select “Show hidden files, folders and drives” and uncheck “Hide protected operating system files”. Also, make sure “Hide extensions for known file types” is unchecked so you can see the .ini extension. Click Ok when done.



1. Create a new text file in the folder you want to use a custom icon for using right click > New > Text Document, name it desktop.txt and NOT desktop.ini. The reason for this is explained further down.

2. Open the text file and you will need to add two lines, an example is below.

    [.ShellClassInfo]
    IconResource=C:\FolderIcon.ico,0

The first line tells Windows there are custom folder settings while the second is the full path to the icon file. The value after the comma is the index number of the icon inside the file. A .ico file has one icon so the index value of the first icon is 0. If there are ten icons in a .icl, .dll or .exe file the index of the fifth icon will be 4, the last icon will be 9, and etc.

3. After entering the two lines using your own icon path and the index value, save the file. Now you can rename it to desktop.ini. It is important that you rename the file to desktop.ini and not create a file directly called desktop.ini or it won’t show the custom icon.

4. You need to make this next change or the desktop.ini gets ignored and the custom icon won’t be displayed. Set the Read-only attribute for the folder itself. This cannot be done from the Windows user interface so Command Prompt is an easy option. Make sure to use quotes if your path has spaces.

    attrib +r [pathtofolder]



Setting either the System or Read-Only attribute for a folder simply tells Windows it’s a folder that can have its view settings customized. The desktop.ini will be ignored until one of those attributes is set. Unlike files, the Read-Only attribute does not affect whether the folder can be deleted.

5. This step is optional and sets the attributes for the desktop.ini file to match those when set by Windows. This will hide the ini file and stop it being edited or deleted, providing you revert the view settings in Folder Options to the defaults.

    attrib +s +h [pathtofolder]\desktop.ini



The folder should change immediately to the custom icon but if not, it will usually do so after several seconds and you go into the folder or refresh the view in Explorer.

Create a Desktop.ini Using a Batch Script

To make things a bit easier, you can also do the same using a batch script. We have created a simple script that will create a desktop.ini file with the name of the icon file you specify. Download the Custom Folder Icon .Bat file and open it in Notepad. Edit line 3 to match the name and path of your custom icon file and also its index value like in step 2 above. Save the batch file.



Now all you have to do is drop a folder onto the .Bat file and its icon will change to the custom icon. The script creates the desktop.ini and then sets the attributes for both it and the folder. You can easily create several batch files using different icons. Drop one folder onto the batch icon at a time as only the first folder is processed. Remember it may take some seconds for the new icon to show.

Tip:  Sometimes the icon just won’t change and it looks like you might have done something wrong. The problem is often related to the desktop.ini file being recognized and used by the system. Sometimes simply renaming desktop.ini to something else and then back to desktop.ini is all takes to get everything working properly and the new folder icon to show. This is also the case if you edit the desktop.ini directly.
Read More:

Modificat de TRaP (acum 4 ani)


pus acum 4 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Folder with icon changed and showing message on hover.

Here's Desktop.ini:


[.ShellClassInfo]
ConfirmFileOp=0
IconFile=icon2.ico
IconIndex=0
InfoTip=This will show on hovering over folder.


If you set ConfirmFileOp to 1 it will start asking questions when you try doing operations on the folder.


_______________________________________


pus acum 1 an
   
Pagini: 1  

Mergi la