Click or drag to resize

FormActMainMakeRelativePathString Method

Make a path relative to the given folder.

Namespace:  Advanced_Combat_Tracker
Assembly:  Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.8.2.285
Syntax
C#
public string MakeRelativePathString(
	string FilePath,
	string ReferenceFolderPath,
	int MaxParentRecursion
)

Parameters

FilePath
Type: SystemString
The absolute path to convert to relative
ReferenceFolderPath
Type: SystemString
The starting point to compare against. If left blank, ACT's executable location will be used.
MaxParentRecursion
Type: SystemInt32
How many times '..' may appear in the relative path

Return Value

Type: String
A relative path from ReferenceFolderPath, if possible... or the original absolute path.
See Also