It is recommended to attempt the copy operation manually when a return code is received through the script.
- A file over 4GB in size is being copied from an NTFS partition to a FAT32 partition. This error is encountered because the maximum size of a file that can be stored on a FAT partition is 4GB. The same error should be returned if the copy operation is attempted manually using XCopy.
- If attempting to copy a file to a folder that does not exist.
- If a disk quota is being enforced which prohibits the file from being copied.
- If the file name is too long to copy.