| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Built-in Template Procedures >====== TAILNAME (extract file name from full path) ====== | [[split merge a single line string to multiple lines .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[unquote remove string special characters .htm|{{btn_next_n.gif|Next page}}]] | | || **TAILNAME(** //symbol// ) {{blk2blue.jpg|blk2blue.jpg}} | **TAILNAME** | Extract a filename from a symbol, removing any path element. | | //symbol// | The symbol containing the filename to extract. | The **TAILNAME** function processes a full path and file name and removes the path part of the symbol. The returned string is its name and extension only. **TAILNAME** does not expand short names. This function is only available in template language usage. **Return Data Type:**     STRING **Example:** | **#!  Generate the default install files  ---** | | **#CREATE(%WiseFile2)** | | **Document Type: WSE** | | **item: Global** | | **  Version=7.0** | | **  File Checksum=646309025** | | **end** | | **#INSERT(%InstFile, FULLNAME(%ProjectTarget), '%MAINDIR%\' & ****TAILNAME(%ProjectTarget)****, %WiseFile2Count)** | **See Also:     **[[fullname return file path .htm|FULLNAME]] [[built in template procedures.htm|Built-In Template Procedures]]