Locating Special Folders?

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

I'm researching ways to locate so-called special folders such as "My
Documents", "<username>\Application Data", etc. I've found references to
Application.CommonAppDataPath(), etc, but those are too limiting.

I'm really looking for managed-code equivalents of SHGetFolderPath(). Is
there such a beast? Or will I need to do a DLLImport to get the flexibility
I need?

Cheers, Jon
 
Have you tried with Environment::GetSpecialFolder [1]

[1]
ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemEnvironmentClassGetFo
lderPathTopic.htm

HTH,

Ramiro
 
Back
Top