Get_File_Path¶
Include: Use System\FileSystem.pkg
See Also: DFPATH, Direct_Input, File_Exist, Make_Directory, Make_Temp_File, Valid_Drive
Purpose¶
Returns the resolved path for a file found through DF_OPEN_PATH.
Syntax¶
Get_File_Path [FILE] {FileName} [to] {ResolvedPath}
Arguments¶
FILE
: Optional file driver. The FILE driver is optional; when omitted, file operations use FILE.
{FileName}
: File name to resolve. See DFPATH for open path behavior.
{ResolvedPath}
: String variable that receives the resolved path, or an empty string when the file cannot be resolved.
Example¶
String sPath
Set_Attribute DF_OPEN_PATH to "dfpath2;dfpath1"
Get_File_Path "dfpathfile.txt" to sPath
Set_Attribute DF_OPEN_PATH to ""