home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn13h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  1.4 KB  |  25 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;       Function 13H: Delete File(s), FCB-based              ;
  4.         ;                                                            ;
  5.         ;       int FCB_delete(uXFCB)                                ;
  6.         ;           char *uXFCB;                                     ;
  7.         ;                                                            ;
  8.         ;       Returns 0 if file(s) were deleted OK, otherwise      ;
  9.         ;       returns -1.                                          ;
  10.         ;                                                            ;
  11.         ;       Note: uXFCB must have the drive and                  ;
  12.         ;       filename fields (bytes 07H through 12H) and          ;
  13.         ;       the extension flag (byte 00H) set before             ;
  14.         ;       the call to FCB_delete (see Function 29H).           ;
  15.         ;                                                            ;
  16.         ;************************************************************;
  17.  
  18. cProc   FCB_delete,PUBLIC,ds
  19. parmDP  puXFCB
  20. cBegin
  21.         loadDP  ds,dx,puXFCB    ; Pointer to unopened extended FCB.
  22.         mov     ah,13h          ; Ask MS-DOS to delete file(s).
  23.         int     21h
  24.         cbw                     ; Return value of 0 or -1.
  25. cEnd