Visual Basic (Declaration) | |
---|---|
Public Shared Function GetRelativePath( _ ByVal fullPath As String, _ ByVal basePath As String _ ) As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim fullPath As String Dim basePath As String Dim value As String value = FileFns.GetRelativePath(fullPath, basePath) |
Parameters
- fullPath
- Full path
- basePath
- Base path from which full path will be made relative
Return Value
The relative path The path to convert can be either a file or a directory. If path is a directory it's returned without a backslash at the end. Examples of returned values: ".\test.txt", "..\test.txt", "..\..\..\test.txt", ".", "..".
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family