User Tools

Site Tools


shortpath_return_short_filename_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== SHORTPATH (return short filename) ====== Previous pageReturn to chapter overviewNext page

SHORTPATH( [ longfilename ] )

blk2blue.jpg

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.

NoteBox.jpg

If the 8.3 Name Creation on NTFS Partitions is disabled, SHORTPATH and PATH are equivalent.

Return Data Type:     STRING

Example:

MyFile STRING(64)

CODE

MyFile = SHORTPATH('c:\program files\my text file.txt') !c:\progra~1\mytext~1.txt

See Also:

SETPATH

LONGPATH

PATH

DIRECTORY

FILEDIALOG

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