_FULLPATH$

From QB64 Phoenix Edition Wiki
Revision as of 22:49, 25 May 2024 by RhoSigma (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link