Assigning Icon to Folder on Desktop Via .BAT or .REG file or CMD l

G

Guest

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
 
R

Ramesh, MS-MVP

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


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
 
G

Guest

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
 
G

Guest

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
 
R

Ramesh, MS-MVP

Glad that helped, Ralph.
Thanks for the feedback.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top