- Scilab help
 - Files : Input/Output functions
 - basename
 - chdir
 - copyfile
 - createdir
 - deletefile
 - dir
 - dirname
 - dispfiles
 - fileext
 - fileinfo
 - fileparts
 - filesep
 - findfiles
 - fprintf
 - fprintfMat
 - fscanf
 - fscanfMat
 - fullfile
 - fullpath
 - get_absolute_file_path
 - getdrives
 - getlongpathname
 - getrelativefilename
 - getshortpathname
 - %io
 - isdir
 - isfile
 - listfiles
 - listvarinfile
 - ls
 - maxfiles
 - mclearerr
 - mclose
 - mdelete
 - meof
 - merror
 - mfprintf
 - mscanf
 - mget
 - mgetl
 - mgetstr
 - mkdir
 - mopen
 - movefile
 - mput
 - mputl
 - mputstr
 - mseek
 - mtell
 - newest
 - pathconvert
 - pathsep
 - pwd
 - removedir
 - rmdir
 - save_format
 - scanf
 - scanf_conversion
 - sscanf
 
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
get_absolute_file_path
Given an absolute pathname of a file opened in scilab.
Calling Sequence
pathname = get_absolute_file_path(filename)
Arguments
- filename
 A character string : filename
- pathname
 A character string : the absolute pathname
Description
Given the absolute pathname of a file already opened in scilab.
get_absolute_file_path searchs, in scilab's internal list of files currently opened, filename and returns its path.
"get_absolute_file_path" seek, in the internal list of the files of scilab currently opened, " filename" and it gives his path.
if file not opened , it will return a error.
WARNING : in previous version (scilab 5.0.x) current directory was returned if file was not found.
This function can be used to find from where (path) is executed a scilab script.
Examples
See Also
- getshortpathname — get short path name (Only for Windows)
 - getlongpathname — get long path name (Only for Windows)
 - pwd — print Scilab current directory
 
Authors
Allan CORNET
| << fullpath | Files : Input/Output functions | getdrives >> |