| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== PATH (return current directory) ====== | [[pack remove deleted records .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[peek read memory address .htm|{{btn_next_n.gif|Next page}}]] | | || **PATH( )** {{blk2blue.jpg|blk2blue.jpg}} **PATH** returns a string containing the current drive and directory. This is equivalent to the SHORTPATH procedure. **PATH **can be used in expressions evaluated by the EVALUATE statements in runtime applications and in the templates. | **Return Data Type:** | STRING | **Example:** **IF PATH() = 'C:\'                            !If in the root** ** MESSAGE('You are in the Root Directory')    !display message** **ELSIF PATH() = 'C:\INVOICE'                  !In program directory** ** MESSAGE('You are in the INVOICE Directory') !display message** **END** **See Also:** [[how to get special folder information.htm|How to Get Active Folder Information]] [[setpath change current drive and directory .htm|SETPATH]] [[shortpath return short filename .htm|SHORTPATH]] [[longpath return long filename .htm|LONGPATH]] [[directory get file directory .htm|DIRECTORY]]