MoveFileFlags (Enums)
Last changed: -


C# Definition:

enum MoveFileFlags
    MOVEFILE_REPLACE_EXISTING           = 0x00000001,
    MOVEFILE_COPY_ALLOWED               = 0x00000002,
    MOVEFILE_DELAY_UNTIL_REBOOT         = 0x00000004,
    MOVEFILE_WRITE_THROUGH              = 0x00000008,
    MOVEFILE_CREATE_HARDLINK            = 0x00000010,
    MOVEFILE_FAIL_IF_NOT_TRACKABLE      = 0x00000020

VB.Net Definition:

Enum MoveFileFlags As UInteger
    MOVEFILE_COPY_ALLOWED               = &H2
    MOVEFILE_WRITE_THROUGH              = &H8
    MOVEFILE_CREATE_HARDLINK            = &H10
End Enum


This is the command you would use for an uninstaller program, a program to delete itself. If you set the first parameter to a directory everything inside of the directory can be (re)moved. To delete set the second parameter to null.