oi10:presentation_server:getabsolutepath_method_filesystem

GETABSOLUTEPATH Method (FileSystem)

Resolves a relative path to an absolute one.

AbsPath = Exec_Method( "FILESYSTEM",      

                          "GETABSOLUTEPATH", 

                          RelativePath,      

                          RelativeToPath )
 
NameRequiredDescription
RelativePathYesSpecifies the relative path to resolve.
RelativeToPathNoSpecifies the reference path for the resolution. If this parameter is null then the current directory is used.

This method does not check if the returned absolute path actually exists.

N/A

 
// 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"
 
 
 

GETRELATIVEPATH method.

  • oi10/presentation_server/getabsolutepath_method_filesystem.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1