Add icons to folders on an external hard drive

pipiKK Posted messages 4 Status Member -  
lebaron43 Posted messages 17 Registration date   Status Member Last intervention   -
Hello everyone!!
I have a small minor problem to bring up, I have an icon for my external hard drive when I connect it, with an autorun (easy...) but I would also like to have icons for my folders, and that's where it gets tricky! Indeed, I tried changing the icons of my folders like I do on my internal HDD, but of course as soon as I take my external HDD to a friend's place... nothing!!! So if anyone has a little idea, let me know!!!!

ciao
Configuration: Windows XP/ubuntu feisty fawn => dual boot Firefox 2.0.0.5 IE 7

8 answers

  1. pipiKK Posted messages 4 Status Member 8
     
    I'm so silly, it's vacation time and I've already forgotten my DOS lessons... you just need to put the relative path of my icon and not the absolute one and bingo!!! :) it's finally solved :):):):)

    so a little recap:

    - you create a folder called Icone on your external hard drive
    - you put all your little icons there
    - then let's take an example... let's imagine we want to change the icon of the "My Documents" folder:
    * we go inside the folder
    * we check if there is already a Desktop.ini file by doing:
    Tools -> Folder Options -> View then uncheck the option "Hide protected operating system files"
    * if there isn't one, we create it, otherwise we edit the existing file
    * then you need to type:

    [.ShellClassInfo]
    IconFile=..\Icons\truc.ico
    IconIndex=0

    (this is just an example, you need to understand how paths work, for instance, the ".." means going back to the previous folder....)
    Here, truc.ico is the icon we want to apply.

    There you go, it's not more complicated than that... maybe I expressed myself poorly, it's not easy to explain in writing but if you have any questions, don't hesitate!

    ciao (and a big thank you to Claude Lachance who found the solution!!)
    7
  2. pipiKK Posted messages 4 Status Member 8
     
    Not a bad idea, but there's still a little issue because if I take my external hard drive to a friend's, the address of my volume won't necessarily be F:\... So can I make it always be O:\...??? Or can I put something like: IconFile=~\Icones\truc.ico??? Thanks for your response anyway, you understood my little issue well!! :)
    1
  3. ziggourat Posted messages 24624 Registration date   Status Contributor Last intervention   5 342
     
    Hello
    It's normal because the icon images are on your hard drive. So when opening with another hard drive (which doesn't have your icons), it can't recognize them.
    Really a minor issue as you said
    ziggurat
    0
  4. Claude Lachance Posted messages 33456 Registration date   Status Contributor Last intervention   1 036
     
    Hi Pipikk
    There is a very easy solution if you replace your icons with thumbnails in the display, which is to name an image folder.jpg and drag it into your folder: it will be your default thumbnail for that folder (you can then make the image a hidden file if you don't want to see it in the folder).
    Otherwise, it's simply enough to create a folder that contains all your icons on your external drive.
    Ciao!
    --
    Potius mori quam foedari
    0
    1. ziggourat Posted messages 24624 Registration date   Status Contributor Last intervention   5 342
       
      Hello Claude Lachance
      Nothing to do with the post, but wouldn't you be Breton?
      Ziggurat
      0
      1. Claude Lachance Posted messages 33456 Registration date   Status Contributor Last intervention   1 036 > ziggourat Posted messages 24624 Registration date   Status Contributor Last intervention  
         
        No, I'm sorry, but I understand why you asked! I am Québécois (and I can't sleep)!

        --
        Better dead than dishonored
        0
  5. ziggourat Posted messages 24624 Registration date   Status Contributor Last intervention   5 342
     
    As "potius mori quam foedari" was the motto of Anne of Brittany.

    A bit of history: According to legend, Duchess Anne of Brittany, while walking in the province, witnessed a hunting scene where the prey was a white ermine. Cornered near a pond, the animal, rather than getting dirty, chose to face the hunters, preferring death to mud. Considering the nobility of this attitude, Anne ordered that the creature be spared and decided to make it her emblem. In reference to this adventure, "Rather death than disgrace" (in Breton: "Kentoc'h mervel eget bezañ saotred") is the motto of Brittany (in Latin: "Potius mori quam foedari"). Cf https://fr.wikipedia.org/wiki/Ordre_de_l%27Hermine
    I'm passionate about history as you can see

    In any case, well done for your interventions, which are always clear and precise
    Have a good day
    ziggourat
    0
  6. pipiKK Posted messages 4 Status Member 8
     
    Uh, I may have expressed myself poorly, but I don't think you fully resolved my issue... Actually, I have a folder with all my icons on my external hard drive, and I would like my folders to have those icons. The problem is: they disappear when I unplug my external hard drive. So, is there a way (like autorun) for my folder icons to always remain the ones I chose??

    Best regards ;)
    0
    1. Claude Lachance Posted messages 33456 Registration date   Status Contributor Last intervention   1 036
       
      Yes, there is a certain way to do this: drag the icon you want to assign to a folder into a folder on the drive in question, for example, into a folder that you will have named Icon.
      Then, there are two solutions:
      1- Right-click on your folder, Properties, then the Customize tab, Change Icon, and then follow the path to your icon folder (the one you created on the external drive).


      2- A second solution, which is essentially the same, is to create a text file like the following
      [.ShellClassInfo] IconFile=F:\Icons\dial.ico IconIndex=0 

      Here, dial is the name of my icon found in the Icon folder at the root of my external drive. Then, just save this file as Desktop.ini

      To view Desktop.ini files, you need to click on the toolbar of any folder, Tools -> Folder Options -> View, then uncheck the option to Hide protected operating system files. This could be useful if you want to quickly assign the same icon to multiple folders: just copy the Desktop.ini file and paste it into all the relevant folders.

      Goodbye




      --
      Potius mori quam foedari
      0
  7. lebaron43 Posted messages 17 Registration date   Status Member Last intervention  
     
    Pour créer un fichier au format .ini, il suffit de suivre ces étapes simples :

    1. Ouvrez un éditeur de texte (comme Notepad sur Windows).
    2. Tapez ou copiez le contenu que vous souhaitez inclure dans le fichier .ini.
    3. Lorsque vous êtes prêt à sauvegarder, allez dans "Fichier" > "Enregistrer sous".
    4. Dans la boîte de dialogue, modifiez le nom du fichier pour qu'il se termine par ".ini" (par exemple, "configuration.ini").
    5. Dans le champ "Type", sélectionnez "Tous les fichiers" pour éviter de le sauvegarder en tant que fichier .txt.
    6. Cliquez sur "Enregistrer".

    Ainsi, vous obtiendrez un fichier au format .ini.

    0
    1. Claude Lachance Posted messages 33456 Registration date   Status Contributor Last intervention   1 036
       
      Hi
      Just replace the txt extension with ini. An ini file is nothing more than a text file with a specific extension.
      Bye!


      --
      Better dead than dishonored
      0
  8. lebaron43 Posted messages 17 Registration date   Status Member Last intervention  
     
    Thank you. The only problem I'm encountering at the moment is that on my USB drive, I have put text files (ini) in some folders such as Video, Pictures, Music, but in others the icon does not appear. What should I do? Should I set the file to hidden mode or not? Where could this come from?
    Thank you in advance
    0