Brian Dunning's FileMaker Custom Functions

GetCurrentDirectory ( )

Returns the path to your database folder.

  Average rating: 4.8 (32 votes) Log in to vote

Iwein De Smedt   Iwein De Smedt

Share on Facebook Share on Twitter

  Sample input:
GetCurrentDirectory ()
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns the path to your database folder.



C Flory   C Flory, Las Vegas
Jun 24, 2011
This can also be achieved with:

Left (
Get ( FilePath ) ;
Length ( Get ( FilePath ) ) - Length ( Get ( FileName ) )

Thanks for sharing!
Iwein De Smedt   Iwein De Smedt, Location Unknown
Jun 24, 2011
Problem with that is that Get ( FileName ) does not include the filename extension, so there are four characters short. You would have to append the extension to the filename first but that doesn't sound like a good idea to me. Interesting approach anyway!

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 18 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: