Retrieving special folder locations the right way (and some history)


Raymond Chen has a great one page piece in this month’s TechNet magazine about why you should use the Shell API to retrieve special folder location information (such as the Fonts folder), why the Shell Folder registry key should not be used and how that key came to be in the first place:


The Sad Story of the Shell Folders Key   

Comments (26)

  1. Jeff Parker says:

    Being a .net developer does the .net way work this way?

    System.Environment.GetFolderPath(SpecialFolder.Personal);

  2. PatriotB says:

    Interestingly, Windows Vista is introducing a new way of retrieving special folder information (and, it appears, creating special folders for your own apps). Looks like cool stuff!

    http://windowssdk.msdn.microsoft.com/library/en-us/ShellCC/platform/shell/reference/functions/shgetfolderpathex.asp

    http://windowssdk.msdn.microsoft.com/library/en-us/ShellCC/platform/shell/reference/ifaces/iknownfoldermanager/iknownfoldermanager.asp

  3. kevin says:

    Hi,Tom:

    I’m a junior in my university of China.My major is software engineering. I like my major very much. At the same time I also like making friends with some programmers to study each other. So today when I’m on Internet, I see your blog.I want to make a friend with you. Shall we? Please E-mail me on:

    bigmagic2008@hotmail.com

    a friend from China

  4. kane says:

    hi,

    I am one of those developers who have been using the registry method :-). Well, I’d change the code now.

    However, there is one catch. We can only retrieve the special folders’ location. Is there a similar way (non-registry) to change the default location of the special folder? I know it sounds unusual, but sometimes (at least in my case) it is required.

    Best Regards.

  5. Thanks!!! http://www.insurance-top.com/company/”>http://www.insurance-top.com/company/ car site insurance. [URL=http://www.insurance-top.com]home insurance[/URL]: compare car insurance, auto insurance, insurance car. Also [url=http://www.insurance-top.com]cars insurance[/url] from website .

  6. Hi! http://www.insurance-top.com/company/ car site insurance. compare car insurance, auto insurance, insurance car. from website .

  7. kathrin says:

    kancdhdcb h dj  e

  8. http://www.la-ringtones.com/mp3/ ringtones site. ringtones site free, ringtones site, Free nokia ringtones here. from website .

  9. cutroadams says:

    Insurance is defined as equitable transfer of risk of potential loss, from a person to the

    company, in exchange for a premium. Its a bond between the person to be insured and the company.

  10. biggie-dvd says:

    Buy Biggie D DVD movies and videos filmography at CD Universe, Fast discreet shipping worldwide with excellent service., enjoy top rated service and …

    <a href="http://biggie-dvd.envy.nu">biggie dvd</a>

    <a href="http://biggie-dvd.envy.nu/biggie-dvd.htm">biggie dvd</a>

  11. progressive insurance contact <a href= http://progressive-insurance.weblogs.pl >insurance contact progressive</a> [url=http://progressive-insurance.weblogs.pl]insurance contact progressive[/url]

  12. chasing cars all <a href= http://chasingcars.vdforum.ru >chasing cars snowpatrol</a> [url=http://chasingcars.vdforum.ru]chasing cars snowpatrol[/url]

  13. progressive insurance  auto <a href= http://progressive-auto-insurance.da.cx >auto insurance progressive</a> [url=http://progressive-auto-insurance.da.cx]auto insurance progressive[/url]

  14. There advance cash fast loan online payday advance cash overnight

  15. 247Blogging says:

    Raymond Chen has a great one page piece in this month’s TechNet magazine about why you should use the Shell API to retrieve special folder location information (such as the Fonts folder), why the Shell Folder registry key should not be used and how tha

  16. Dating says:

    Raymond Chen has a great one page piece in this month’s TechNet magazine about why you should use the Shell API to retrieve special folder location information (such as the Fonts folder), why the Shell Folder registry key should not be used and how tha