Jump to content

Recommended Posts

Posted

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 !

Posted

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.

Posted

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

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
×
×
  • Create New...