====== GETABSOLUTEPATH method (Filesystem) ======
==== Description ====
Resolves a relative path to an absolute one.
==== Syntax ====
AbsPath = Exec_Method( "FILESYSTEM",
"GETABSOLUTEPATH",
RelativePath,
RelativeToPath )
==== Parameters ====
^Name^Required^Description^
|RelativePath|Yes|Specifies the relative path to resolve.|
|RelativeToPath|No|Specifies the reference path for the resolution. If this parameter is null then the current directory is used.|
==== Returns ====
This method does not check if the returned absolute path actually exists.
==== Remarks ====
N/A
==== Example ====
// Use GETABSOLUTEPATH to resolve a relative directory to
// the current directory
//
// (Assume current directory is "c:\revsoft\openinsight")
//
RelPath = "..\my_data"
AbsPath = Exec_Method( "FILESYSTEM", "GETABSOLUTEPATH", RelPath, "" )
// AbsPath should be: "c:\revsoft\my_data"
// Use GETABSOLUTEPATH to resolve a relative directory to
// a specified reference directory
RelPath = "\my_root_dir"
RefPath = "c:\revsoft\openinsight\apps"
AbsPath = Exec_Method( "FILESYSTEM", "GETABSOLUTEPATH", RelPath, RefPath)
// AbsPath should be: "c:\my_root_dir"
==== See Also ====
GETRELATIVEPATH method.