Macro Scheduler 15

ExtractFileName

ExtractFileName>filename,result[,withoutextension]

 

Extracts the name and extension parts from the given filename and returns it in result. Set the optional without_extension parameter to 1 to return the filename without the extension.

 

See also: ExtractFleExt, ExtractFilePath

Abbreviation: EFN

 

Example:

 

Let>filename=c:\users\documents\somefile.doc

 

//name_only will contain "somefile.doc"

ExtractFileName>filename,name_only