Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Retrieves the title portion of a file path, excluding the extension

For example, for "c:/temp/take25.c3d", "take25" will be returned.

Functional area

System

Command syntax

Syntax

getFileTitle "filePath"

Arguments

NameTypeRequiredComments
filePathstringyesFull path to the file to get the title for.

Flags

None

Return value

string

Returns the file title, which is the file name minus the extension.

Examples

// Get the title of a file path. 
string $title;
string $path = "c:/temp/take25.c3d";
$title = `getFileTitle $path`;
print $title;

Additional information

Related commands

  • No labels