ResultVariable
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions
String.SplitPath
OverviewExamples
table String.SplitPath ( string Path )
De s cr ip t ion
Splits a path up into it's drive, folders, filename, and file extension and returns a table containing each part.
P arame t er s
Path
(string) The path that you want to split up.
Re t u r n s
(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. |