Home All Groups Group Topic Archive Search About

Vista directory properties

Author
19 Oct 2007 7:13 PM
Flomo Togba Kwele
In Vista, if I select a directory, right-click and choose Properties, then select the Customize
tab, does the framework expose properties for the following items?

Use this folder type as a template (drop down)

Change Icon (button)

Thanks, Flomo
--
--

Author
22 Oct 2007 7:01 AM
Walter Wang [MSFT]
Hi Flomo,

Based on my understanding, you asked two questions:

1. How to change the folder type of a folder programmatically
2. How to change a folder's icon programmatically

For your first question, there's no documented or supported way to do this
using code. Sorry for the inconvenience.

For your second question, we can achieve the objective using desktop.ini:

#Customizing Folders with Desktop.ini
http://msdn2.microsoft.com/en-us/library/bb776832.aspx


Here's an example in C#:

#Create Icons for Folders in Windows Explorer, Using C# - The Code Project
- Files and Folders
http://www.codeproject.com/cs/files/foldericonsincsharp.asp?df=100&forumid=1
45059&exp=0&select=1555092


Hope this helps.


Regards,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

AddThis Social Bookmark Button