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


See also:

Class StringFunctions