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.3.286
Syntax
C#
public string MakeRelativePathString(
	string FilePath,
	string ReferenceFolderPath,
	int MaxParentRecursion
)

Parameters

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

Return Value

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