longpath_return_long_filename_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== LONGPATH (return long filename) ====== | |
LONGPATH( [ shortfilename ] )
LONGPATH | Returns the fully-qualified long filename for a given short filename. |
shortfilename | A string constant, variable, or expression that specifies the DOS standard filename to convert. This may include the complete path. If omitted, LONGPATH returns the current drive and directory in long name form. |
The LONGPATH procedure returns the long filename for a given short filename. The file named in the shortfilename parameter must already exist on disk. LONGPATH can now be used in expressions evaluated by the EVALUATE statements in runtime applications and in the templates.
Return Data Type: | STRING |
Example:
MyLongFile STRING(260)
CODE
MyLongFile = LONGPATH('c:\progra~1\mytext~1.txt')
!returns: c:\program files\my text file.txt
See Also:
longpath_return_long_filename_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1