سؤال

I'm searching for a way to retrieve KnownFolders with framework 2.0, 3.5 or 4.0 (mainly 2.0)

Is there a C# method for the Windows API function SHGetKnownFolderPath?

If found this, but it is only for Windows 8 store apps.

هل كانت مفيدة؟

المحلول

There is System.Environment.GetFolderPath() (available since .NET 1.0).

It takes one of the Environment.SpecialFolder enum values as a parameter.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top