User Tools

Site Tools


tailname_extract_file_name_from_full_path_.htm
Navigation:  Templates > Template Language Reference > Built-in Template Procedures >====== TAILNAME (extract file name from full path) ====== Previous pageReturn to chapter overviewNext page

TAILNAME( symbol )

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

Built-In Template Procedures

tailname_extract_file_name_from_full_path_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)