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
Copies files and folders without user interface.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 2.8 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
SourcePath | The native path to the file or folder to be copied. | "/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. (ignored on other platforms) |
1 | Optional |
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.
Copy a file:
MBS( "Files.CopyFile"; "/Users/cs/Desktop/test.pdf"; "/Users/cs/Desktop/copy.pdf")
Copy file on Windows with alternative copy method:
MBS( "Files.CopyFile"; "D:\Arbeitsunterlagen\Problemloesungsbericht_SDAG_WM.xlsx"; "D:\Files_for_ZIP/CC__8D_1997_01_02__LU_53145345__2_97.xlsx"; 0; 0; 1)
Copy a file from desktop to a network volume:
MBS( "Files.CopyFile"; "C:\Users\Christian\Desktop\test.mov"; "Z:\Files\test.mov")
Created 18th August 2014, last changed 3th January 2020
Files.CanOpenFile - Files.CopyFiles
Feedback: Report problem or ask question.