LONGPATH (return long filename)

Top  Previous  Next

 

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:

SHORTPATH

PATH

DIRECTORY

FILEDIALOG