Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
This function checks for a license.
Created 18th August 2014, last changed 13th June 2020
