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 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:
StringA relative path from ReferenceFolderPath, if possible... or the original absolute path.
See Also