FormActMainMakeRelativePathString Method |
Make a path relative to the given folder.
Namespace: Advanced_Combat_TrackerAssembly: Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.8.3.286
Syntaxpublic 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
StringA relative path from ReferenceFolderPath, if possible... or the original absolute path.
See Also