String.SplitPath

table String.SplitPath ( 

string Path )

Description

Splits a path up into it's drive, folders, filename, and file extension and returns a table containing each part.

Parameters

Path

(string) The path that you want to split up.

Returns

(table) A table containing each component of the path, indexed by the following keys:

KEY

TYPE

DESCRIPTION

Drive

string

The drive portion of the path (for example, C:).

Folder

string

All of the folders within the path (for example, \MyFolder1\MyFolder2\).

Filename

string

The filename in the path (for example, "myfile").

Extension

string

The file extension in the path (for example, ".exe").

Note: If any portion of the path is not available, an empty string will be returned ("") as it's value.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions