Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Twain.SetFolderPath

Sets the folder path for storing image files.

Component Version macOS Windows Linux Server iOS SDK
Twain 3.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Twain.SetFolderPath"; path )   More

Parameters

Parameter Description Example
path The path to the folder to use for storing image files. If empty clears the file path "/Users/cs/Desktop/"

Result

Returns OK on success.

Description

Sets the folder path for storing image files.
If you set the path with this function, images are not available with the Twain.CurrentImage function and Twain.ImageCount returns always zero. But with Twain.GetFilePaths you can learn where files have been stored.
The path must end with a slash on Mac and a backslash on Windows.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.

See also

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 5th September 2014


Twain.SetFileType - Twain.SetGamma