Get(DocumentsPath)
Purpose 
Returns the path to the Documents folder for the current user.
Format 
Get(DocumentsPath)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 8.0
Description 
In Windows XP, the path format is /Drive:/Documents and Settings/UserName/My Documents/.
In Windows Vista, the path format is /Drive:/Users/UserName/Documents/.
In the Mac OS, the path format is /DriveName/Users/UserName/Documents/.
When running on FileMaker Server, Get(DocumentsPath) returns the location of the Documents folder, which is in the same folder as the server's Backups, Databases, and Scripts folders. The Documents folder is used as a shared location that scripts from different sessions or other processes on the machine can use to import or export files.
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Examples 
For FileMaker Pro, for a user named John Smith, returns:
/C:/Documents and Settings/JohnSmith/My Documents in Windows XP
/C:/Users/John Smith/Documents/ in Windows Vista.
/MacintoshHD/Users/John Smith/Documents in the Mac OS
For FileMaker Server, returns:
/C:/Program Files/FileMaker/FileMaker Server/Data/Documents in Windows Vista.
/MacintoshHD/Library/FileMaker Server/Data/Documents in the Mac OS
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas
Get(DocumentsPathListing) function