|Navigation: Language Reference > 13 - Built-in Functions >====== SHORTPATH (return short filename) ======|
SHORTPATH( [ longfilename ] )
|SHORTPATH||Returns the fully-qualified short filename for a given long filename.|
|longfilename||A string constant, variable, or expression that specifies the long filename to convert. This may include the complete path. If omitted, SHORTPATH returns the current drive and directory in short name form.|
The SHORTPATH procedure returns the DOS standard short filename for a given longfilename. The file named as the parameter must exist on disk. SHORTPATH can now be used in expressions evaluated by the EVALUATE statements in runtime applications and in the templates.
If the 8.3 Name Creation on NTFS Partitions is disabled, SHORTPATH and PATH are equivalent.
Return Data Type: STRING
MyFile = SHORTPATH('c:\program files\my text file.txt') !c:\progra~1\mytext~1.txt