Click or drag to resize

FOF Enumeration

Flags that control file operations.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
[FlagsAttribute]
public enum FOF
Members
  Member nameValueDescription
FOF_MULTIDESTFILES1 The target specifies multiple destination files (one for each source file in pFrom) rather than one directory where all source files are to be deposited.
FOF_CONFIRMMOUSE2 Not used.
FOF_SILENT4 Do not display a progress dialog box.
FOF_RENAMEONCOLLISION8 Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists at the destination.
FOF_NOCONFIRMATION16 Respond with Yes to All for any dialog box that is displayed.
FOF_WANTMAPPINGHANDLE32 If FOF_RENAMEONCOLLISION is specified and any files were renamed, assign a name mapping object that contains their old and new names to the hNameMappings member. This object must be freed using SHFreeNameMappings when it is no longer needed.
FOF_ALLOWUNDO64 Preserve undo information, if possible. Prior to Windows Vista, operations could be undone only from the same process that performed the original operation. In Windows Vista and later systems, the scope of the undo is a user session. Any process running in the user session can undo another operation. The undo state is held in the Explorer.exe process, and as long as that process is running, it can coordinate the undo functions.If the source file parameter does not contain fully qualified path and file names, this flag is ignored.
FOF_FILESONLY128 Perform the operation only on files (not on folders) if a wildcard file name (*.*) is specified.
FOF_SIMPLEPROGRESS256 Display a progress dialog box but do not show individual file names as they are operated on.
FOF_NOCONFIRMMKDIR512 Do not ask the user to confirm the creation of a new directory if the operation requires one to be created.
FOF_NOERRORUI1024 Do not display a dialog to the user if an error occurs.
FOF_NOCOPYSECURITYATTRIBS2048 Do not copy the security attributes of the file. The destination file receives the security attributes of its new folder.
FOF_NORECURSION4096 Only perform the operation in the local directory. Do not operate recursively into subdirectories, which is the default behavior.
FOF_NO_CONNECTED_ELEMENTS8192 Do not move connected files as a group. Only move the specified files.
FOF_WANTNUKEWARNING16384 Send a warning if a file is being permanently destroyed during a delete operation rather than recycled. This flag partially overrides FOF_NOCONFIRMATION.
FOF_NORECURSEREPARSE32768 Not used.
FOF_NO_UI1556Windows Vista. Perform the operation silently, presenting no UI to the user. This is equivalent to FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR.
FOFX_NOSKIPJUNCTIONS65536 Walk into Shell namespace junctions. By default, junctions are not entered.
FOFX_PREFERHARDLINK131072 If possible, create a hard link rather than a new instance of the file in the destination.
FOFX_SHOWELEVATIONPROMPT262144 If an operation requires elevated rights and the FOF_NOERRORUI flag is set to disable error UI, display a UAC UI prompt nonetheless.
FOFX_RECYCLEONDELETE524288Introduced in Windows 8. When a file is deleted, send it to the Recycle Bin rather than permanently deleting it.
FOFX_EARLYFAILURE1048576 If FOFX_EARLYFAILURE is set together with FOF_NOERRORUI, the entire set of operations is stopped upon encountering any error in any operation. This flag is valid only when FOF_NOERRORUI is set.
FOFX_PRESERVEFILEEXTENSIONS2097152 Rename collisions in such a way as to preserve file name extensions. This flag is valid only when FOF_RENAMEONCOLLISION is also set.
FOFX_KEEPNEWERFILE4194304 Keep the newer file or folder, based on the Date Modified property, if a collision occurs. This is done automatically with no prompt UI presented to the user.
FOFX_NOCOPYHOOKS8388608 Do not use copy hooks.
FOFX_NOMINIMIZEBOX16777216 Do not allow the progress dialog to be minimized.
FOFX_MOVEACLSACROSSVOLUMES33554432 Copy the security attributes of the source item to the destination item when performing a cross-volume move operation. Without this flag, the destination item receives the security attributes of its new folder.
FOFX_DONTDISPLAYSOURCEPATH67108864 Do not display the path of the source item in the progress dialog.
FOFX_DONTDISPLAYDESTPATH134217728 Do not display the path of the destination item in the progress dialog.
FOFX_REQUIREELEVATION268435456Introduced in Windows Vista SP1. The user expects a requirement for rights elevation, so do not display a dialog box asking for a confirmation of the elevation.
FOFX_ADDUNDORECORD536870912Introduced in Windows 8. The file operation was user-invoked and should be placed on the undo stack. This flag is preferred to FOF_ALLOWUNDO.
FOFX_COPYASDOWNLOAD1073741824Introduced in Windows 7. Display a Downloading instead of Copying message in the progress dialog.
FOFX_DONTDISPLAYLOCATIONS-2147483648Introduced in Windows 7. Do not display the location line in the progress dialog.
See Also