Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string ExpandPath(string)

Declaration

public static string ExpandPath(
    string path
)

Summary

Expands all occurrences of "$(NAME)" in the specified string with the special folder path for the current machine/user. See remarks for details.

Remarks

Expands all occurrences of "$(NAME)", where NAME is the name of one of the values of the SpecialFolder enum. There is no support for escaping such a replacement, and invalid names are ignored.

The following additional names are also recognised:

$(Temp) expands to the system's temporary folder path (Path.GetTempPath()).
$(AppPath) expands to the directory containing the entry assembly.
$(MachineName) expands to Environment.MachineName.
$(UserName) expands to Environment.UserName.
$(UserDomainName) expands to Environment.UserDomainName.