Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - 日本語

Change language to:
English - Français - Português

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

Scilab manual >> Files : Input/Output functions > get_absolute_file_path

get_absolute_file_path

Scilabでオープンしたファイルの絶対パス名を出力します.

呼び出し手順

pathname = get_absolute_file_path(filename)

パラメータ

filename

文字列 : ファイル名

pathname

文字列 : 絶対パス名

説明

Scilabですでにオープンしている ファイルの絶対パス名を出力します.

get_absolute_file_path は Scilabで現在オープンしているファイルの内部リストの中で filename を検索し,そのパスを返します.

"get_absolute_file_path" は, Scilabが現在オープンしているファイルの内部リストの中で "filename" を検索し,そのパスを出力します.

オープンされていない場合,エラーを返します.

警告 : 以前のバージョン (scilab 5.0.x) では, ファイルが見つからない場合, カレントのディレクトが返されていました.

この関数は, Scilabスクリプトを実行する(パス)を見つけるために 使用することができます.

// このスクリプトを実行

a=mopen(TMPDIR+'test.sce','wt');
disp(get_absolute_file_path('test.sce'));
mclose(a);

作者

Allan CORNET

<< fullpath Files : Input/Output functions 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:
Wed Jan 26 16:25:11 CET 2011