Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch file to change folder icon in Windows 10  (Read 11024 times)

0 Members and 1 Guest are viewing this topic.

DaBooch

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Unknown
    Batch file to change folder icon in Windows 10
    « on: March 01, 2020, 11:14:32 AM »
    Hey all. Looking for help with a the creation of a Batch file.  I have multiple (100's) of folders that i have placed a *.ico (each one is different) file that I would like to use as the folder icon.  I would like to create a Batch file to put into the folder and, when double clicked, would change the icon for that folder to the one I placed in the folder. Any and all advice would be appreciated.

    Many thanks in advance.

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Batch file to change folder icon in Windows 10
    « Reply #1 on: March 01, 2020, 11:47:16 AM »
    Sorry, I do not have a neat answer.
    Here is an item of interest:
    https://gallery.technet.microsoft.com/scriptcenter/Set-FolderIcon-0bd56629
    The above uses Power shell instead of pure batch.  :)
     
    EDIT: The program is not trivial, it requires additional effort to make it do what your want. I would guess that pure batch would not be any better. Maybe I am wrong about that.  :-\

    Hackoo



      Hopeful
    • Thanked: 42
    • Experience: Expert
    • OS: Windows 10
    Re: Batch file to change folder icon in Windows 10
    « Reply #2 on: March 02, 2020, 04:33:35 PM »
    Hi  ;)
    You can take a look at this batch script : Customize_Icon_Folder.bat

    DaBooch

      Topic Starter


      Rookie

      • Experience: Beginner
      • OS: Unknown
      Re: Batch file to change folder icon in Windows 10
      « Reply #3 on: March 02, 2020, 07:13:59 PM »
      Sorry, I do not have a neat answer.
      Here is an item of interest:
      https://gallery.technet.microsoft.com/scriptcenter/Set-FolderIcon-0bd56629
      The above uses Power shell instead of pure batch.  :)
       
      EDIT: The program is not trivial, it requires additional effort to make it do what your want. I would guess that pure batch would not be any better. Maybe I am wrong about that.  :-\

      Looks like I have to rename the Icon to "Folder Icon".  Not a biggie but I was hoping for something a bit different where I didn't have to start renaming files.  Much obliged, though.

      DaBooch

        Topic Starter


        Rookie

        • Experience: Beginner
        • OS: Unknown
        Re: Batch file to change folder icon in Windows 10
        « Reply #4 on: March 02, 2020, 07:15:54 PM »
        Hi  ;)
        You can take a look at this batch script : Customize_Icon_Folder.bat

        Tried the Batch File a few times with new Icons and the Batch will copy the icon to the folder but won't create a Desktop Configuration Setting File to implement the Icon.  The script ran but no icon showed up.  Very much appreciate the response though.