Hello Jan,
This from the help on fDataDir()
Returns the full path of the directory of HFSQL data files specified by the user when installing the application.
Remark: This directory does not necessarily correspond to the real directory of the data files at run time (that may have been modified by HSubstDir, HChangeDir, ...).
It may work for you or try fCurrentDir()
Regards
Al