This call copies the specified file or subdirectory to the target file or subdirectory.
DosCopy
SourceName (PSZ) - input
Bit
1 = Append the source file to the target file's end of data. This is ignored when copying a directory or if the target file doesn't exist.
1 = Copy the source file to the target even if the file name already exists within the target directory.
DosCopy copies all files and subdirectories in the source path to the target path. Global file name characters are not allowed in source or target names. The source and the target may be on different drives.
In the event of an I/O error, DosCopy takes the following actions before it terminates:
o
Read-only files cannot be replaced by a DosCopy request. If OpMode bit flag0 is set to 1 and read-only files exist in the target, an attempt to replace them with files from the source returns an error.
File attributes are always copied from the source to the target; however extended attributes (EAs) are not copied in every case. DosCopy copies EAs from the source to the target when creating a file or directory or when replacing an existing file on the target. However, it does not copy them when appending an existing file or when copying files to an existing directory on the target.
If a device name is specified as the target, the source name must be a file, not a directory. When the request is issued, OpMode bit flags 0 and 1 are ignored.
DosQSysInfo is called by an application during initialization to determine the maximum path length allowed by OS/2.