You are here: Function Reference > Alphabetical Listing > F > FilePath

FilePath

Use this function to get the path component of a file name.

Syntax

FilePath (FullFileName)

Parameter

Description

FullFileName

Enter a string that contains a fully qualified file name, such as:

"d:\mypath\myfile.ext"

The system returns a string that contains the path component of that file name.

Example

Here is an example:

MYPATH = FilePath("d:\mypath\myfile.ext")

In this example, MYPATH would contain:

"\mypath\"

See also