Click or drag to resize

MoveOptions Enumeration

Used by MoveFileXxx.Flags that specify how a file or directory is to be moved.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
[FlagsAttribute]
public enum MoveOptions
Members
  Member nameValueDescription
None0No MoveOptions used, this fails when the file name already exists.
ReplaceExisting1MOVE_FILE_REPLACE_EXISTSING

If the destination file name already exists, the function replaces its contents with the contents of the source file.

This value cannot be used if lpNewFileName or lpExistingFileName names a directory.

This value cannot be used if either source or destination names a directory.

CopyAllowed2MOVE_FILE_COPY_ALLOWED

If the file is to be moved to a different volume, the function simulates the move by using the CopyFile and DeleteFile functions.

This value cannot be used with DelayUntilReboot.

DelayUntilReboot4MOVE_FILE_DELAY_UNTIL_REBOOT

The system does not move the file until the operating system is restarted. The system moves the file immediately after AUTOCHK is executed, but before creating any paging files.

Consequently, this parameter enables the function to delete paging files from previous startups. This value can only be used if the process is in the context of a user who belongs to the administrators group or the LocalSystem account.

This value cannot be used with CopyAllowed.

WriteThrough8MOVE_FILE_WRITE_THROUGH

The function does not return until the file has actually been moved on the disk.

Setting this value guarantees that a move performed as a copy and delete operation is flushed to disk before the function returns. The flush occurs at the end of the copy operation.

This value has no effect if DelayUntilReboot is set.

CreateHardlink16MOVE_FILE_CREATE_HARDLINK

Reserved for future use.

FailIfNotTrackable32MOVE_FILE_FAIL_IF_NOT_TRACKABLE

The function fails if the source file is a link source, but the file cannot be tracked after the move.

This situation can occur if the destination is a volume formatted with the FAT file system.

See Also