StringFunctions.MakeRelativePath

Creates a relative path from one file or folder to another.

public static string MakeRelativePath(string fromPath,
	string pathRelativeTo)

Return Value

The relative path from the specified folder (pathRelativeTo) to the specified file.

Parameters

fromPath Contains the file or folder that the result is the relative path for.

pathRelativeTo Contains the directory that the result should be relative to.

Exceptions

**System.ArgumentNullException**

Remarks

Taken from http://stackoverflow.com/questions/275689/how-to-get-relative-path-from-absolute-path

Overloads:


See also:

Class StringFunctions

© Stonefield Software Inc., 2019 • Updated: 02/12/16
Comment or report problem with topic