TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Daryl Willis
from: david nugent
date: 1996-03-30 04:19:32
subject: attributes

DW> Ok using _dos_findfirst() I can get all the info on a file that I
 DW>  need, however, the attrib returns usually 32 for archive  or
 DW> 19 for a hidden read only, I,m sure I can write something to easily
 DW> see what bits are set in 19

Use hexadecimal when dealing with bit values. Better yet, use #define s for
all the possible bits and you don't even have to think about it.

#define FILE_NORMAL     0x00
#define FILE_ARCHIVE    0x10
#define FILE_SUBDIR     0x20

/* etc. */

Your compiler's dos.h defines most of these in one form or another. The
Microsoft line uses _A_NORMAL etc, Borland uses FA_NORMAL etc. In one form
or another, they'll be there.

--- MaltEd/2 1.0.b6
* Origin: Unique Computing Pty Limited (3:632/348)
SEEN-BY: 50/99 78/0 620/243 623/630 632/103 348 360 998 633/371 634/384 388
SEEN-BY: 635/301 502 503 544 639/252 711/401 409 410 413 430 808 809 932 934
SEEN-BY: 712/515 713/888 714/906 800/1 7877/2809
@PATH: 632/348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.