Returns a relative path string from a full path.

Syntax:

public static string GetRelativePath( string FullPath,
	string BasePath );
Return: Lower case string of the relative path. If path is a directory it's returned without a backslash at the end.

Examples of returned values: .\test.txt, ..\test.txt, ..\..\..\test.txt, ., ..

Parameters: FullPath
The path to convert. Can be either a file or a directory

BasePath
The base path to truncate to and replace

See also:

Class wwUtils


Last Updated: 1/28/2007 | Send topic feedback