Tech Support > Microsoft Windows > Customizing > Creating Desktop.ini files
Creating Desktop.ini files
Posted by mik311y on February 25th, 2006


I am on Windows Media center and I am trying to create a desktop.ini
file for a new folder. I know exactly what I want in it.......

[.ShellClassInfo]
IconFile=%SystemRoot%\system32\shell32.dll
IconIndex=127

While logged in as an admin I am creating this file in note pad and
doing a save as Desktop.ini with all file types selected. I then go to
dos and "attrib +h +s desktop.ini". I then refresh the desktop and log
off and but for some reason the icon will never change. I even tried
copying a windows created desktop.ini file into the folder and it still
does not work. What am I over looking or not doing when I am creating
this file? Any help would be great

Posted by Wesley Vogel on February 25th, 2006


You multiposted this same message to...
microsoft.public.windowsxp.help_and_support
and
microsoft.public.windowsxp.general

Why not just customize the folder with icon you want and let Windows create
the desktop.ini?

127 is the icon that looks like the icon that My Pictures folder uses.

Create a new folder
Right click the new folder
Click Properties
Click the Customize tab
Click the Change Icon button
Move the slider to the right about half way
The icon that you want is in the bottom row, to the left of a RED X
Double click the icon that you want
Click Apply
Click OK
Open your folder, open the desktop.ini that Windows has now created (or
fixed).
-----

If a message MUST be posted to multiple groups, post a single message and
select all the groups (or type their names manually, separated by commas) in
which you want it to be seen. This is called Crossposting and when used
properly it is GOOD.

This question was posted individually to multiple groups.

This is called Multiposting and it's BAD.

Replies made in one group will not be visible in the other groups, which
may cause multiple people to respond to a question with the same answer
because they didn't know someone else had already done it.

This is a waste of time.
-----

What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1140831288.712535.182060@e56g2000cwe.googlegr oups.com,
mik311y <mik311y@gmail.com> hunted and pecked:
--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1140829812.173845.56670@u72g2000cwu.googlegro ups.com,
mik311y <mik311y@gmail.com> hunted and pecked:
--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1140831390.867545.140490@p10g2000cwp.googlegr oups.com,
mik311y <mik311y@gmail.com> hunted and pecked:

Posted by mik311y on February 25th, 2006


First of all let me say sorry about not crossposting. I did not realize
it was possible to hit multiple groups with one post. I see your point,
now I cannot reply to the post on mutiple group. Or can I? I was not
aware that all of these groups pointed at microsoft web site. It is
kind of ambiguous using google group, unless you know how the group
names work. I am just new to the news group thing. sorry again.

Well the reason I am using a .ini file is that I moved my shared
documents folder to another drive. I am trying to recreate the
desktop.ini folder for it and the other shared folders in that
directory to give it the same look and feel. Since this is a shell
folder I am under the impression and it seems to be true that your
method does not work. It seems though my problem lies in creating or
with the the attributes of the desktop.ini file because I cannot even
create a dummy folder on the desktop and change the icon using the
desktop.ini method. I read the following article about desktop.ini

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/shellcc/platform/shell/programmersguide/
shell_basics/shell_basics_extending/custom.asp

I know what the code should be for the desktop.ini file I want but
maybe I have a syntax error or something. If you have any other
suggestions that would be great.

Thank You

Posted by Keith Miller MVP on February 25th, 2006


The folder has to have its read-only bit set via a command prompt window:

c:\folder parent path> attrib + r "folder name"

or let windows do this for you using the customize icon feature, as Wesley suggested. You can
overwrite the desktop.ini file with your own.

--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]


"mik311y" <mik311y@gmail.com> wrote in message
news:1140837970.353713.270260@j33g2000cwa.googlegr oups.com...

Posted by Wesley Vogel on February 25th, 2006


http://groups.google.com/group/micro...6155c3b e8ded

http://groups.google.com/group/micro...f4 e0eea7752e

http://groups.google.com/group/micro...9b6502e26e7c9e

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1140837970.353713.270260@j33g2000cwa.googlegr oups.com,
mik311y <mik311y@gmail.com> hunted and pecked:

Posted by mik311y on March 12th, 2006


I figured it out the directory has to be set to system

Posted by Keith Miller MVP on March 13th, 2006


Wow! Glad you figured that out!


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]


"mik311y" <mik311y@gmail.com> wrote in message
news:1142130279.308517.136060@j52g2000cwj.googlegr oups.com...


Similar Posts