{{tag>Function Function_List Files}} ====== FILE_NAME ====== ===== Description ===== Returns the name of the specified file or document without the extension ===== Syntax ===== ''FILE_NAME (file)'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== An expression returning a string identifying a file or directory name or an attribute of the Document type ===== Returns ===== **Text**: the file or document name without the extension. ===== Example ===== DISPLAY MESSAGE ('File name is ' + FILE_NAME('c:/myfile.txt')) ===== Related ===== [[ref:a_f:f:af:file_extension|FILE_EXTENSION]], [[ref:a_f:f:af:file_size|FILE_SIZE]], [[ref:a_f:f:af:file_exists|FILE_EXISTS]]