Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsFileCopyMBS class.
WindowsFileCopyMBS.Lasterror as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Windows | MBS Win Plugin | 9.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
This value is typically zero on success and -1 if the function is not supported by the plugin.
The FileOperation* functions have special error codes as following, but other methods have normal Windows Error codes:
DE_SAMEFILE | = &h71 | The source and destination files are the same file. |
DE_MANYSRC1DEST | = &h72 | Multiple file paths were specified in the source buffer, but only one destination file path. |
DE_DIFFDIR | = &h73 | Rename operation was specified but the destination path is a different directory. Use the move operation instead. |
DE_ROOTDIR | = &h74 | The source is a root directory, which cannot be moved or renamed. |
DE_OPCANCELLED | = &h75 | The operation was cancelled by the user, or silently cancelled if the appropriate flags were supplied to SHFileOperation. |
DE_DESTSUBTREE | = &h76 | The destination is a subtree of the source. |
DE_ACCESSDENIEDSRC | = &h78 | Security settings denied access to the source. |
DE_PATHTOODEEP | = &h79 | The source or destination path exceeded or would exceed MAX_PATH. |
DE_MANYDEST | = &h7A | The operation involved multiple destination paths, which can fail in the case of a move operation. |
DE_INVALIDFILES | = &h7C | The path in the source or destination or both was invalid. |
DE_DESTSAMETREE | = &h7D | The source and destination have the same parent folder. |
DE_FLDDESTISFILE | = &h7E | The destination path is an existing file. |
DE_FILEDESTISFLD | = &h80 | The destination path is an existing folder. |
DE_FILENAMETOOLONG | = &h81 | The name of the file exceeds MAX_PATH. |
DE_DEST_IS_CDROM | = &h82 | The destination is a read-only CD-ROM, possibly unformatted. |
DE_DEST_IS_DVD | = &h83 | The destination is a read-only DVD, possibly unformatted. |
DE_DEST_IS_CDRECORD | = &h84 | The destination is a writable CD-ROM, possibly unformatted. |
DE_FILE_TOO_LARGE | = &h85 | The file involved in the operation is too large for the destination media or file system. |
DE_SRC_IS_CDROM | = &h86 | The source is a read-only CD-ROM, possibly unformatted. |
DE_SRC_IS_DVD | = &h87 | The source is a read-only DVD, possibly unformatted. |
DE_SRC_IS_CDRECORD | = &h88 | The source is a writable CD-ROM, possibly unformatted. |
DE_ERROR_MAX | = &hB7 | MAX_PATH was exceeded during the operation. |
UnknownError | = &h402 | An unknown error occurred. This is typically due to an invalid path in the source or destination. This error does not occur on Windows Vista and later. |
ERRORONDEST | = &h10000 | An unspecified error occurred on the destination. |
DE_ROOTDIR | ERRORONDEST | = &h10074 | Destination is a root directory and cannot be renamed. |
WindowsFileCopyMBS.MultiThreaded as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Windows | MBS Win Plugin | 12.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
This property allows you to call this method in a Thread. The plugin will perform the actual operation on a helper thread, so it does not block Xojo's threading. Your GUI can continue to run this way. Progress event fires asynchronously.
(Read and Write property)
Some examples using this property:
WindowsFileCopyMBS.OperationsAborted as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Windows | MBS Win Plugin | 9.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
(Read and Write property)
Some examples using this property:
WindowsFileCopyMBS.Parent as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Windows | MBS Win Plugin | 9.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Can reference a Window or DesktopWindow object.
(Read and Write property)
The items on this page are in the following plugins: MBS Win Plugin.