Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== GETABSOLUTEPATH Method (FileSystem) ====== ==== Description ==== Resolves a relative path to an absolute one. ==== Syntax ==== <code> AbsPath = Exec_Method( "FILESYSTEM", "GETABSOLUTEPATH", RelativePath, RelativeToPath ) </code> ==== 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 ==== <code> // 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" </code> ==== See Also ==== GETRELATIVEPATH method. guides/oi10/presentation_server/getabsolutepath_method_filesystem.txt Last modified: 2023/10/25 10:49by 127.0.0.1