| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== LONGPATH (return long filename) ====== | [[logout begin transaction .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[lower return lower case .htm|{{btn_next_n.gif|Next page}}]] | | || **LONGPATH(** [ //shortfilename //] **)** {{blk2blue.jpg|blk2blue.jpg}} | **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 return short filename .htm|SHORTPATH]] [[path return current directory .htm|PATH]] [[directory get file directory .htm|DIRECTORY]] [[filedialoga extended file dialog .htm|FILEDIALOG]]