back to Table of Contents


PathPart$ (function)

This simple function will return the path part of the given file or folder specification. That is the part upto and inclusive the rightmost backslash, but without the final name component, which is usually the actual file or folder name. To get that file or folder name, you would use the function FilePart$() instead.


SYNTAX:

path$ = PathPart$ (fileSpec$)

INPUTS:

fileSpec$ (STRING)


RESULT:

path$ (STRING)

In either case the result is a valid path eg. for CHDIR or to append new names to, if you wanna create new files (OPEN) or folders (MKDIR) in the same location as the given source object.

back to Table of Contents