Tech Support > Microsoft Windows > Assigning Icon to Folder on Desktop Via .BAT or .REG file or CMD l
Assigning Icon to Folder on Desktop Via .BAT or .REG file or CMD l
Posted by Ralph Malph on January 12th, 2006


How do I assign an Icon to a folder on my desktop via the command line/.Bat
file or .REG file. I am writting a .BAT file that will create a folder on the
desktop and I want to give it an icon other than the default.

Thanks,

Ralph Malph

Posted by Brian A. on January 12th, 2006


Why not just create the folder, right click it, click Properties >
Customize tab > Change Icon button and browse to the icon you want?

--

Brian A. Sesko { MS MVP_Shell/User }
Conflicts start where information lacks.
http://basconotw.mvps.org/

Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
How to ask a question: http://support.microsoft.com/kb/555375




"Ralph Malph" <ralph.malph@happydays.com> wrote in message
news:FF1F41EF-1CFC-40B3-88BF-7991BCF48FFD@microsoft.com...
> How do I assign an Icon to a folder on my desktop via the command
> line/.Bat
> file or .REG file. I am writting a .BAT file that will create a folder on
> the
> desktop and I want to give it an icon other than the default.
>
> Thanks,
>
> Ralph Malph


Posted by Ramesh, MS-MVP on January 12th, 2006


Using a .BAT
=========

Sets the icon for folder "C:\Test"

- - -
attrib -h -r c:\test\desktop.ini
echo [.ShellClassInfo] >C:\test\desktop.ini
echo IconFile=%SystemRoot%\system32\shell32.dll >>C:\test\desktop.ini
echo IconIndex=110 >>C:\test\desktop.ini
attrib +h +r c:\test\desktop.ini
attrib +r c:\test
- - -

If you're using a .ICO file, then set the IconIndex to 0.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Ralph Malph" <ralph.malph@happydays.com> wrote in message
news:FF1F41EF-1CFC-40B3-88BF-7991BCF48FFD@microsoft.com...
How do I assign an Icon to a folder on my desktop via the command line/.Bat
file or .REG file. I am writting a .BAT file that will create a folder on
the
desktop and I want to give it an icon other than the default.

Thanks,

Ralph Malph


Posted by Ralph Malph on January 13th, 2006


Because I have 100 computers that I need to do this to. I do not want to have
to go to each one all over the campus I am putting the Folder, on when I
could have the user just click on a link to a .bat file in an e-mail that
would do it for me.

Thanks,

Ralph Malph


"Brian A." wrote:

> Why not just create the folder, right click it, click Properties >
> Customize tab > Change Icon button and browse to the icon you want?
>
> --
>
> Brian A. Sesko { MS MVP_Shell/User }
> Conflicts start where information lacks.
> http://basconotw.mvps.org/
>
> Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
> How to ask a question: http://support.microsoft.com/kb/555375
>
>
>
>
> "Ralph Malph" <ralph.malph@happydays.com> wrote in message
> news:FF1F41EF-1CFC-40B3-88BF-7991BCF48FFD@microsoft.com...
> > How do I assign an Icon to a folder on my desktop via the command
> > line/.Bat
> > file or .REG file. I am writting a .BAT file that will create a folder on
> > the
> > desktop and I want to give it an icon other than the default.
> >
> > Thanks,
> >
> > Ralph Malph

>
>

Posted by Ralph Malph on January 13th, 2006


Ramesh,

Thanks that worked wonderfuly !

Now if I could also do that in Win 2K that would be great. (Of course as far
as I know Win 2K does not support changing the Folder Icon on the desktop.)

Thanks again, you have been a real help !!!

Ralph Malph


"Ramesh, MS-MVP" wrote:

> Using a .BAT
> =========
>
> Sets the icon for folder "C:\Test"
>
> - - -
> attrib -h -r c:\test\desktop.ini
> echo [.ShellClassInfo] >C:\test\desktop.ini
> echo IconFile=%SystemRoot%\system32\shell32.dll >>C:\test\desktop.ini
> echo IconIndex=110 >>C:\test\desktop.ini
> attrib +h +r c:\test\desktop.ini
> attrib +r c:\test
> - - -
>
> If you're using a .ICO file, then set the IconIndex to 0.
>
> --
> Regards,
>
> Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
> Windows® XP Troubleshooting http://www.winhelponline.com
>
>
> "Ralph Malph" <ralph.malph@happydays.com> wrote in message
> news:FF1F41EF-1CFC-40B3-88BF-7991BCF48FFD@microsoft.com...
> How do I assign an Icon to a folder on my desktop via the command line/.Bat
> file or .REG file. I am writting a .BAT file that will create a folder on
> the
> desktop and I want to give it an icon other than the default.
>
> Thanks,
>
> Ralph Malph
>
>
>

Posted by Ramesh, MS-MVP on January 13th, 2006


Glad that helped, Ralph.
Thanks for the feedback.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"Ralph Malph" <ralph.malph@happydays.com> wrote in message
news:FE8B15A2-7C74-4237-936C-B0DF3BA1567B@microsoft.com...
Ramesh,

Thanks that worked wonderfuly !

Now if I could also do that in Win 2K that would be great. (Of course as far
as I know Win 2K does not support changing the Folder Icon on the desktop.)

Thanks again, you have been a real help !!!

Ralph Malph


"Ramesh, MS-MVP" wrote:

> Using a .BAT
> =========
>
> Sets the icon for folder "C:\Test"
>
> - - -
> attrib -h -r c:\test\desktop.ini
> echo [.ShellClassInfo] >C:\test\desktop.ini
> echo IconFile=%SystemRoot%\system32\shell32.dll >>C:\test\desktop.ini
> echo IconIndex=110 >>C:\test\desktop.ini
> attrib +h +r c:\test\desktop.ini
> attrib +r c:\test
> - - -
>
> If you're using a .ICO file, then set the IconIndex to 0.
>
> --
> Regards,
>
> Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
> Windows® XP Troubleshooting http://www.winhelponline.com