Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
FSplit Procedure
◄Summary► ◄Details► ◄Example► ◄Back►
Arguments
pathname String expression representing a full DOS file name
directory String variable of type DirStr; receives drive and
directory, including colon and backslashes
filename String variable of type NameStr; receives base name
of file
extension String variable of type ExtStr; receives file
extension, including dot
Description
The FSplit procedure separates a file name into the component parts
of drive plus directory, base name, and file extension. The
returned components contain all the characters passed in pathname.
FSplit neither adds nor removes characters.
The pathname argument passes a path name for a file. It is of type
PathStr, defined in DOS.
The output arguments are directory, filename, and extension. Each
receives a component of pathname. Their types, respectively, are
DirStr, NameStr, and ExtStr, all defined in the Dos unit.
FSplit sets an output argument to a null string if pathname does
not contain the corresponding component.
The FExpand function expands a file name to a fully qualified DOS
path name.