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 [(E-Mail Removed)]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!
>>
>> "(E-Mail Removed)" wrote:
>>
>>> 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