It looks like you're new here. If you want to get involved, click one of these buttons!
mov ah,19h ;get current drive
cmp al,0 ;is it a drive?
je adrive ;yes
mov dx,OFFSET String3 ;no,it is c:drive
mov dx,OFFSET String1 ;write it isa:drive
mov dx,OFFSET FileName
mov ah,4eh ;FindFirst
mov cx,20h ;archive files
Explanation:Program searches for any file with asm extension on a: drive.
After that line carry is set indicating error.
Problem:FindFirst WON't work when FileName is a:*.asm (see above the definition!Everything else works,including :
??.* and so on...
Carry is always set,which means error!Why doesn't it work?