<- Back to CNS Image function list
CNSImage_File_GetPath
- Description
You can use the CNSImage_File_GetPath to retrieve a variety of paths including: Database, FileMaker, Root, System, Desktop, Preferences, Temporary, Applications, or Documents.
This function can be used with other functions. For example you could use CNSImage_File_GetPath to get the user desktop path and then use CNSImage_Export to export a file from a container field.
- Return Type
- Text
- Format
- CNSImage_File_GetPath ( Type )
- Required Parameters
- Type
Which Path Type you need. Specify "Database", "FileMaker", "Root", "System", "Desktop", "Preferences", "Temporary", "Applications", or "Documents".
- Type
- Related Items
- CNSImage_Export, CNSImage_File_Copy, CNSImage_File_Delete, CNSImage_File_Exists, CNSImage_File_SelectFileWithDialog, CNSImage_File_SelectFolderWithDialog, CNSImage_Import, Reference: Paths
- Examples
Example 1
Code:
CNSImage_File_GetPath("Database")Result:
Returns the path to the current databaseExample 2
Code:
CNSImage_File_GetPath("Desktop")Result:
Returns the path to desktop.