FULLPATH$: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
m (Fix typo) |
No edit summary |
||
Line 37: | Line 37: | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [https://qb64phoenix.com/forum/showthread.php?tid=2734 Featured in our "Keyword of the Day" series] | |||
* [[_CWD$]], [[_STARTDIR$]] | * [[_CWD$]], [[_STARTDIR$]] | ||
* [[FILES]], [[_FILES$]] | * [[FILES]], [[_FILES$]] |
Latest revision as of 22:49, 25 May 2024
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