Click or drag to resize
PathUtilsMakeRelativePath Method
Creates a relative path from one file or folder to another.

Namespace: Slash.SystemExt.Utils
Assembly: Slash.System (in Slash.System.dll) Version: 1.0.5843.24176
Syntax
public static string MakeRelativePath(
	string fromPath,
	string toPath
)

Parameters

fromPath
Type: SystemString
Contains the directory that defines the start of the relative path.
toPath
Type: SystemString
Contains the path that defines the endpoint of the relative path.

Return Value

Type: String
The relative path from the start directory to the end path.
Exceptions
ExceptionCondition
ArgumentNullExceptionfromPath or toPath is empty.
See Also