Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

File attribute constants

Feedback

In this article

Syntax

#include <io.h>

Remarks

These constants specify the current attributes of the file or directory specified by the function.

The attributes are represented by the following manifest constants:

ConstantDescription
_A_ARCHArchive. Set whenever the file is changed, and cleared by the BACKUP command. Value: 0x20
_A_HIDDENHidden file. Not normally seen with the DIR command, unless the /AH option is used. Returns information about both normal files and files with this attribute. Value: 0x02
_A_NORMALNormal. File can be read or written to without restriction. Value: 0x00
_A_RDONLYRead-only. File can't be opened for writing, and a file with the same name can't be created. Value: 0x01
_A_SUBDIRSubdirectory. Value: 0x10
_A_SYSTEMSystem file. Not normally seen with the DIR command, unless the /AS option is used. Value: 0x04

Multiple constants can be combined with the OR operator (|).

See also

Filename search functions
Global constants


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?