KnownFolders.GetPath

Gets the current path to the specified known folder as currently configured. This does not require the folder to be existent.

public static string GetPath(KnownFolder knownFolder,
	bool defaultUser)

Return Value

The default path of the known folder.

Parameters

knownFolder
The known folder which current path will be returned.

defaultUser
Specifies if the paths of the default user (user profile template) will be used. This requires administrative rights.

Exceptions

**System.Runtime.InteropServices.ExternalException**
Thrown if the path could not be retrieved.

Overloads:


See also:

Class KnownFolders

© West Wind Technologies, 2019 • Updated: 01/06/19
Comment or report problem with topic