Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

RunTask.SetCurrentDirectoryPath

Sets the current directory for the receiver.

Component Version macOS Windows Linux Server iOS SDK
RunTask 3.1 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No

Deprecated

This function was deprecated. Use Shell functions instead.

MBS( "RunTask.SetCurrentDirectoryPath"; Path )   More

Parameters

Parameter Description Example
Path The new path for current working directory. "/Users/cs/Desktop"

Result

Returns OK or error.

Description

Sets the current directory for the receiver.
If this method isn't used, the current directory is inherited from the process that created the receiver.

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.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.

See also

Example Databases

Created 18th August 2014, last changed 13th June 2020


RunTask.SetArguments - RunTask.SetLaunchPath

Feedback: Report problem or ask question.