chang icon on folder

O

olsen.orjan

I want to change the icon on my folders from a standard look to a more
personal look.
I want this to be done in a program that I'm programming.
This program are creating a user and a project folder. I want these two
folders to have a personal icon on them.

How can this be done?
I must create an desktop.ini file and an icon. I've tried that. I've
also saved them inside the folder that I want to change the look. Bur
no changes are done.

This is my desktop.ini file:
[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=1
IconFile=myicon.ico
IconIndex=0
InfoTip=Dds project folder
 
G

Guest

You forget to set attribute to Desktop.ini. Desktop.ini must be protected by
+S attrib. You have to protect this file from Command Prompt. Click Start -
Run - type CMD and press Enter. Move to the folder where your file is located
and use ATTRIB +S DESKTOP.INI.

The method could be different as you may or you have to protect this file
through your program.

Hope this is what you were missing, let us know!
 
O

olsen.orjan

Thanks.
When I made my folder a systemfolder, with the same command it adds my
icon to the folder.
But when I make desktop.ini a sys file attribute, my icon doesn't show
in windows explorer. But it shows when I'm just browsing...

Thanks for your help.

:)
RajKohli skrev:
You forget to set attribute to Desktop.ini. Desktop.ini must be protected by
+S attrib. You have to protect this file from Command Prompt. Click Start -
Run - type CMD and press Enter. Move to the folder where your file is located
and use ATTRIB +S DESKTOP.INI.

The method could be different as you may or you have to protect this file
through your program.

Hope this is what you were missing, let us know!

I want to change the icon on my folders from a standard look to a more
personal look.
I want this to be done in a program that I'm programming.
This program are creating a user and a project folder. I want these two
folders to have a personal icon on them.

How can this be done?
I must create an desktop.ini file and an icon. I've tried that. I've
also saved them inside the folder that I want to change the look. Bur
no changes are done.

This is my desktop.ini file:
[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=1
IconFile=myicon.ico
IconIndex=0
InfoTip=Dds project folder
 
A

Ayush

To make the Desktop.ini file invisible, you can use :
attrib +s +h "Desktop.ini path"

If that fails, then do this before doing that :
attrib -s -h "Desktop.ini path"


--
Ayush [ Be ''?'' Happy ]
-------------
Search - www.Google.com | Wikipedia - http://en.wikipedia.org
Snip your long urls - http://snipurl.com/
-------------


Replid to [[email protected]]s message :
-----------------------------------------------------------
Thanks.
When I made my folder a systemfolder, with the same command it adds my
icon to the folder.
But when I make desktop.ini a sys file attribute, my icon doesn't show
in windows explorer. But it shows when I'm just browsing...

Thanks for your help.

:)
RajKohli skrev:
You forget to set attribute to Desktop.ini. Desktop.ini must be
protected by +S attrib. You have to protect this file from Command
Prompt. Click Start - Run - type CMD and press Enter. Move to the
folder where your file is located and use ATTRIB +S DESKTOP.INI.

The method could be different as you may or you have to protect this
file through your program.

Hope this is what you were missing, let us know!

I want to change the icon on my folders from a standard look to a
more personal look.
I want this to be done in a program that I'm programming.
This program are creating a user and a project folder. I want these
two folders to have a personal icon on them.

How can this be done?
I must create an desktop.ini file and an icon. I've tried that. I've
also saved them inside the folder that I want to change the look.
Bur no changes are done.

This is my desktop.ini file:
[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=1
IconFile=myicon.ico
IconIndex=0
InfoTip=Dds project folder
 
O

olsen.orjan

I didn't have to make my folder a system folder. It is enough to update
the attribute to read only.

This is the only thing that changes icon on folders, when they are
placed under program files.

To make the Desktop.ini file invisible, you can use :
attrib +s +h "Desktop.ini path"

If that fails, then do this before doing that :
attrib -s -h "Desktop.ini path"


--
Ayush [ Be ''?'' Happy ]
-------------
Search - www.Google.com | Wikipedia - http://en.wikipedia.org
Snip your long urls - http://snipurl.com/
-------------


Replid to [[email protected]]s message :
-----------------------------------------------------------
Thanks.
When I made my folder a systemfolder, with the same command it adds my
icon to the folder.
But when I make desktop.ini a sys file attribute, my icon doesn't show
in windows explorer. But it shows when I'm just browsing...

Thanks for your help.

:)
RajKohli skrev:
You forget to set attribute to Desktop.ini. Desktop.ini must be
protected by +S attrib. You have to protect this file from Command
Prompt. Click Start - Run - type CMD and press Enter. Move to the
folder where your file is located and use ATTRIB +S DESKTOP.INI.

The method could be different as you may or you have to protect this
file through your program.

Hope this is what you were missing, let us know!

:

I want to change the icon on my folders from a standard look to a
more personal look.
I want this to be done in a program that I'm programming.
This program are creating a user and a project folder. I want these
two folders to have a personal icon on them.

How can this be done?
I must create an desktop.ini file and an icon. I've tried that. I've
also saved them inside the folder that I want to change the look.
Bur no changes are done.

This is my desktop.ini file:
[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=1
IconFile=myicon.ico
IconIndex=0
InfoTip=Dds project folder
 

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