Click or drag to resize

PathGetRelativePath Method

[AlphaFS] Gets the relative path from the startPath path to the end path.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static string GetRelativePath(
	string startPath,
	string selectedPath
)

Parameters

startPath
Type: SystemString
The absolute or relative folder path.
selectedPath
Type: SystemString
The absolute or relative path containing the directory or file.

Return Value

Type: String
The relative path containing the directory or file, from the startPath path to the end path.
Exceptions
See Also