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
)
Public Shared Function GetRelativePath (
startPath As String,
selectedPath As String
) As String
public:
static String^ GetRelativePath(
String^ startPath,
String^ selectedPath
)
static member GetRelativePath :
startPath : string *
selectedPath : string -> string
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:
StringThe relative path containing the directory or file, from the
startPath path to the end path.
Exceptions See Also