Returns the absolute path of a file.
1 file.getAbsolutePath
<file.getAbsolutePath>
<file /> !
</file.getAbsolutePath>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Efile | file |
Returns | |
---|---|
Type | Description |
String | Absolute path of the file. |
Example
Print on screen the absolute path of the file.
Copy
<xsql-script name='file_getAbsolutePath_sample1'> <body> <set name='m_path'> <string>c:<file.separator />jas<file.separator />webstudio.gc</string> </set> <println trim='true'> Absolute path of the file<string.space /><m_path/><string.space />:<string.space /> <file.getAbsolutePath> <file name='#m_path' type='absolute' /> </file.getAbsolutePath> </println> </body> </xsql-script>