FilePath

Returns the path of a file.

Syntax:

FilePath (filename)

Parameters:

(s) filename fully qualified file name.

Returns:

(s) fully qualified path name.

 

FilePath parses the passed filename and returns the drive and path of the file specification, if any.

Example:


coms = Environment("COMSPEC")
compath = FilePath(coms)
Message("Your command processor is located in", compath)
See Also:

CurrentPath, FileExtension, FileRoot