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
Moves a file or folder without user interface.
|Component||Version||macOS||Windows||Linux||Server||FileMaker iOS SDK|
|Files||2.8||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
|SourcePath||The native path to the file or folder to be moved.||"/Users/John/Desktop/test.txt"|
|DestPath||The native path to the destination folder or file.||"/Users/John/Desktop/Backup/"|
|Overwrite||Mac only: Whether to allow overwriting existing files. Default is off. Pass 1 to enable and 0 to disable.
On Windows, it overwrites always.
|SkipSourcePermissionErrors||Mac only: Whether to skip files with permission errors. Default is off. Pass 1 to enable and 0 to disable.||1||Optional|
|ProgressTitle||Title for the progress window.
For Windows only and the text may not be visible in your version of Windows.
|"Copying FileMake files"||Optional|
Returns OK or error message.
DescriptionMoves a file or folder without user interface.
SourcePath and DestPath must be valid and exist. So pass destination folder for the destination.
The Linux implementation does only move files within the same file system.
On Mac you may get error -43 for file not found if you refer to a file in a folder, where you don't have file permissions to look inside the folder.
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.
Move a file:
- Version 10.0
- Version 8.5
- Version 7.0
- MBS FileMaker Plugin, version 9.6pr2
- FileMaker 18 File Script Steps vs. BinaryFile functions
- MBS FileMaker Plugin, version 8.5pr7
- MBS FileMaker Plugin, version 8.5pr2
- Comparing Base Elements Plugin to MBS FileMaker Plugin
- MBS FileMaker Plugin, version 7.0pr3
- MBS Filemaker Plugin, version 2.8pr1
Created 18th August 2014, last changed 20th August 2018
Feedback: Report problem or ask question.
MBS Xojo Plugins