Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 4301h set file attributes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 4301h          Set File Attributes

    Sets the attributes for a specified file or directory.

        Entry   AX    = 4301h
                CX    = Desired attributes
                DS:DX = Pointer to filespec (ASCIIZ string)

        Return  AX = Error code, if CF is set
                     | 01h Invalid function code
                     | 02h File not found
                     | 03h Path not found
                     | 05h Access denied

    ------------------------------------------------------------------

    The file specification must be a valid DOS file name or directory
    name and cannot contain wildcards.

    The file attributes in the CX register can be a combination
    (OR'ed) of the following values:

                attr_normal     = 00h
                attr_readonly   = 01h
                attr_hidden     = 02h
                attr_system     = 04h
                attr_archive    = 20h

    Only attr_hidden and attr_system are meaningful for directories.

    Bits 6 and 7 of the attribute byte are reserved and must be zero
    (values larger than 3Fh should not be specified).

See Also: 4300h 3ch 6ch 59h File attributes

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson