Click or drag to resize

PathUtilsExpandSpecialFolders Method

Expands a path that contains special folder names enclosed in pipe (|) characters.

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static string ExpandSpecialFolders(
	string path
)

Parameters

path
Type: SystemString
The path with special folder names included.

Return Value

Type: String
The path with expanded special folders.
Remarks

The following special folder names are expanded:

Special Folder ExpressionExpansion Example (System: Windows 7)
|Desktop|C:\Users\{USERNAME}\Desktop
|DesktopDirectory|C:\Users\{USERNAME}\Desktop
|ApplicationData|C:\Users\{USERNAME}\AppData\Roaming
|LocalApplicationData|C:\Users\{USERNAME}\AppData\Local
|CommonApplicationData|C:\ProgramData
|System|C:\Windows\system32
|ProgramFiles|C:\Program Files
|CommonProgramFiles|C:\Program Files\Common Files
|Temp|C:\Users\{USERNAME}\AppData\Local\Temp
See Also