92h FL$WDEL wildcard file delete
Input X register - Address of filename (leading count byte).
UTW_S0 - address of user routine - 0000 for no routine.
Output - none -
Description

Wild file delete, works in a similar way to FL$DELN and FL$BDEL except that wild card characters and file extensions are allowed.

The file name at X is a leading byte count string of the form <device>:<name>.<ext>. The following wild cards are allowed in <name>:

    *   match any number of any characters.
    +   match any 1 character.

and <ext> is either ".*" or any of the following file extensions:

  • .ODB - text files
  • .OPL - OPL procedures (text and object)
  • .OPT - OPL procedures (text only)
  • .OPO - OPL procedures (object only)
  • .DIA - CM/XP diary save files
  • .COM - Comms Link setup files
  • .PLN - Spreadsheet files
  • .PAG - Pager setup files
  • .NTS - Notepad files
  • .TY8-TYF - file types (88-8F)

UTW_S0 contains the address of the user's routine to be called for each file deleted, e.g. to print file names. When it is called, X reg will point to the filename and A reg will have its file type.

This call is not available on CM/XP machines.

Example To delete all OPL procedures beginning with "X" from B:
        LDX     #MATCH_STRING
        OS      FL$WDEL
        BCS     ERROR
        RTS

MATCH_STRING:   ASCIC   "B:X*.OPL"
Errors 194 - battery too low
200 - read pack err
234 - file not found
236 - bad file name
240 - unknown pack
241 - pack not blank
243 - bad device name
244 - read only pack
245 - write pack err
246 - no pack