[org 0x0100]
mov ax, 4300h ; get file attributes
mov dx, filename
int 21h
mov [attribute], cx ; save file attribute in variable
mov ax, 4301 ; set file attributes
mov dx, filename
mov cx, 0020h
int 21h
mov ax,0x4c00
int 0x21
filename dw 'D:\link.txt'
attribute dw 0