_FULLPATH$
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
The _FULLPATH$ function returns an absolute or full path name for the specified relative path name.
Syntax
- p$ = _FULLPATH$(pathName$)
Parameters
- pathname$ is the file or directory for which to obtain absolute path information.
Description
- The path returned ends with a backslash on Windows and a forward-slash on Linux and macOS if pathname$ is a directory.
- A nonexistent file or directory generates the error message, "Path Not Found.".
Availability
Examples
- Example
- Display the absolute path name of the parent directory.
PRINT "Parent directory full path: "; _FULLPATH$("../") |
See also
- Featured in our "Keyword of the Day" series
- _CWD$, _STARTDIR$
- FILES, _FILES$
- _DIREXISTS, _FILEEXISTS