Retrieves the title portion of a file path, excluding the extension
For example, for "c:/temp/take25.c3d"
, "take25" will be returned.
System
getFileTitle "filePath" |
Name | Type | Required | Comments |
---|---|---|---|
filePath | string | yes | Full path to the file to get the title for. |
None
string
Returns the file title, which is the file name minus the extension.
// Get the title of a file path. string $title; string $path = "c:/temp/take25.c3d"; $title = `getFileTitle $path`; print $title; |