<- Back to POP3it Pro function list
POP3it_File_GetPath
- Description
You can use the POP3it_File_GetPath function to retrieve a variety of paths including:
- Database - The Path to the Folder containing the Current Database.
- FileMaker - The Path to the Folder containing the FileMaker or Runtime Application.
- Root - The Root Volume for the System ("/" for Mac and "c:\" for Windows).
- System - The System folder for the System ("/System/" for Mac and "c:\Windows" for Windows).
- Desktop - The user's Desktop Folder.
- Preferences - The user's Preferences Folder.
- Temporary - The Temporary Folder for storing Temporary files.
- Chewable - Another Temporary Folder for storing Temporary Files. On Mac OS X, the contents of this folder is deleted every time the computer is started. On Windows, this path is the same as the "Temporary" path.
- Applications - The Folder where Applications are stored ("/Applications/" on Mac and "c:\Program Files" on Windows).
- Documents - The user's Documents Folder.
This function can be used with other file functions. For example you could use POP3it_File_GetPath to get the user's desktop path and then use POP3it_File_Export to export a file from a container field to the user's desktop.
- Return Type
- Text
- Format
- POP3it_File_GetPath ( Type )
- Required Parameters
- Type
Which Path Type you need. Specify "Database", "FileMaker", "Root", "System", "Desktop", "Preferences", "Temporary", "Chewable", "Applications", or "Documents"
- Type
- Related Items
- POP3it_File_CreateFolder, POP3it_File_DeleteFolder, POP3it_File_FolderExists, POP3it_File_SelectFolderWithDialog
- Examples
Example 1
Code:
POP3it_File_GetPath("Database")Result:
Returns the path to the current database.Example 2
Code:
POP3it_File_GetPath("Desktop")Result:
Returns the path to the user's desktop.