Equinox Online Help - Language Reference - A to Z

Home

FilePath

Applies to
SyntaxFilePath FileSpecExpression [, PathItem, NameItem]
Action[Statement] Takes a file specification and extracts the path and name.
ScopeUsable anywhere
Notes

This statement separates the path and name components from a full file specification in the FileSpecExpression parameter. PathItem and NameItem, if supplied, receive the path and name.

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryFile Management
See Also ChooseFile, FileDelete, FileDetails, FileExists, FileHandle, FilePath, FileRename, FileSearch, FileSearchNext, MakeDirectory, RemoveDirectory
Example

This example prints the directory and file name to the print window.

string path

FilePath filename, path, name

Print "path, " path
Print "Name, " name