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
Freelancer
http://www.freelancer.com/

Share on Facebook Share on Twitter

  Sample input:
GetCurrentDirectory ()
  Sample output:
file:/path/to/database/directory/

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

Returns the path to your database folder.

 

Comments

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 BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.