
13-34
Computer Programming with C
Explanation:
In the above program, a le name is en-
tered whose attributes are to be displayed.
e DX register contains the address of the
entered le. e register AL is initialized
with 0 to get the le attributes. e register
AH is always initialized with service num-
ber. Here, it is initialized with 0x43. e
result obtained is stored in the AL reg-
ister. Checking the status of CL register
by AND (&) operation, we can nd the
attributes of a le. Table 13.2 describes Bit
status of CL and le attributes.
13.35 Write a program to delete a le using the DOS interrupt.
TABLE 13.2
Bit status and attributes