Sign in to follow this  
Followers 0
DaProgrammer

Desktop.ini

6 posts in this topic

i created a file named Desktop.ini inside a folder and wrote there

[.ShellClassInfo]
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=126

the folders icon should change but it wont, what am i doing wrong ?

p.s. if i choose an icon from customize it writes the same in Desktop.ini, word for word !


Share this post


Link to post
Share on other sites



right click on desktop and hit refresh.

Share this post


Link to post
Share on other sites

right click on desktop and hit refresh.

tnx but wasnt born yesterday :) LOL

i tried that, won't work


Share this post


Link to post
Share on other sites

I *think* you need to set Desktop.ini to have the Hidden and System attributes, and you need to set the folder to have System attribute as well. This can be done using attrib from the DOS prompt.


[ WinINet.au3 | Array.au3 (Optimized) | _UnixTimeParse() ]

Share this post


Link to post
Share on other sites

If it is the attributes thing:

Start > Run > cmd.exe

Then navigate to the folder containing desktop.ini

attrib +s +h desktop.ini

And it should change the attributes for you.

Share this post


Link to post
Share on other sites

I *think* you need to set Desktop.ini to have the Hidden and System attributes, and you need to set the folder to have System attribute as well. This can be done using attrib from the DOS prompt.

tnx man, what i was missing is the folder attrib

FileSetAttrib($Folder, "+S")

now it works fine


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0