1
<?xml version="1.0" encoding="ISO-8859-1"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) XXXX-2008 - INRIA
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="getrelativefilename" xml:lang="en">
15
<refname>getrelativefilename</refname>
16
<refpurpose>dado um nome de diret�rio absoluto e um nome de arquivo
17
relativo, retorna um nome de arquivo relativo.
21
<title>Seq��ncia de Chamamento</title>
22
<synopsis>rel_file = getrelativefilename(abs_dir,abs_file)</synopsis>
25
<title>Par�metros</title>
30
<para>string : o diret�rio absoluto</para>
36
<para>string : o nome de arquivo absoluto</para>
42
<para>string : o nome de arquivo relativo</para>
48
<title>Descri��o</title>
49
<para>dado um nome de diret�rio absoluto e um nome de arquivo relativo,
50
retorna um nome de arquivo relativo.
52
<para>Por exemplo, se o diret�rio corrente � C:\scilab\bin e o nome de
53
arquivo C:\scilab\modules\helptools\readme.txt � dado, getrelativefilename
54
retornar� ..\modules\helptools\readme.txt.
58
<title>Exemplos</title>
59
<programlisting role="example"><![CDATA[
60
if getos() == 'Windows' then
61
getrelativefilename('C:\program file\scilab-4.0\bin','C:\program file\scilab-4.0\modules\helptools\help.dtd')
62
getrelativefilename('C:\program file\scilab-4.0\bin\','C:\program file\scilab-4.0\modules\helptools\help.dtd')
63
getrelativefilename(SCI+'\bin',SCI+'\modules\helptools\help.dtd')
64
getrelativefilename(WSCI+'\bin',WSCI+'\modules\helptools\help.dtd')
65
getrelativefilename(pwd(),WSCI+'\bin\Wscilex')
67
getrelativefilename('/usr/local/scilab-4.0/bin','/usr/local/scilab-4.0/modules/helptools/help.dtd')
68
getrelativefilename('/usr/local/scilab-4.0/bin/','/usr/local/scilab-4.0/modules/helptools/help.dtd')
69
getrelativefilename(SCI+'/bin',SCI+'/modules/helptools/help.dtd')
70
getrelativefilename(pwd(),SCI+'/bin/scilex')
74
<refsection role="see also">
75
<title>Ver Tamb�m</title>
76
<simplelist type="inline">
78
<link linkend="getshortpathname">getshortpathname</link>
81
<link linkend="getlongpathname">getlongpathname</link>
84
<link linkend="pwd">pwd</link>