FULLPATH$: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Initial _FULLPATH$ documentation)
 
m (Fix typo)
Line 4: Line 4:


{{PageSyntax}}
{{PageSyntax}}
: {{Parameter|p$}} = [[_FULLPATH$]]("{{Parameter|pathName$}}")
: {{Parameter|p$}} = [[_FULLPATH$]]({{Parameter|pathName$}})





Revision as of 00:46, 3 January 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



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