Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Entrées/Sorties [fichiers] > Chemins - nom de fichiers > get_absolute_file_path


gives an absolute pathname of a file opened in Scilab


pathname = get_absolute_file_path(filename)



a character string: filename.


a character string: an absolute pathname.


get_absolute_file_path gives an absolute pathname of a file already opened in Scilab.

get_absolute_file_path searches in Scilab's internal list of files currently opened filename and returns its path pathname.

If file is not opened, it will return an error.

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.


// exec this script


See also

  • getshortpathname — retourne le chemin au format court (Seulement pour Windows)
  • getlongpathname — retourne le chemin au format nom long (Seulement pour Windows)
  • pwd — affiche le répertoire courant de Scilab
Report an issue
<< fullpath Chemins - nom de fichiers getdrives >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:06:37 CET 2017