tailname_extract_file_name_from_full_path_.htm
Navigation: Templates > Template Language Reference > Built-in Template Procedures >====== TAILNAME (extract file name from full path) ====== | |
TAILNAME( symbol )
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
tailname_extract_file_name_from_full_path_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1