Click or drag to resize

CopyOptions Enumeration

Flags that specify how a file or directory is to be copied.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
public enum CopyOptions
  Member nameValueDescription
None0No CopyOptions used, this allows overwriting the file.

The copy operation fails immediately if the target file already exists.


Progress of the copy is tracked in the target file in case the copy fails. The failed copy can be restarted at a later time by specifying the same values forexisting file name and new file name as those used in the call that failed. This can significantly slow down the copy operation as the new file may be flushed multiple times during the copy operation.


The file is copied and the original file is opened for write access.


An attempt to copy an encrypted file will succeed even if the destination copy cannot be encrypted.

CopySymbolicLink2048COPY_FILE_COPY_SYMLINK, similar to XCOPY /B parameter: Copies the Symbolic Link itself versus the target of the link.

If the source file is a symbolic link, the destination file is also a symbolic link pointing to the same file that the source symbolic link is pointing to.


The copy operation is performed using unbuffered I/O, bypassing system I/O cache resources. Recommended for very large file transfers.

See Also