home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / sysutl / tools.lbr / DL.DZC / DL.DOC
Encoding:
Text File  |  1987-08-06  |  2.5 KB  |  65 lines

  1. DL
  2.  
  3. DL  is a replacement for the CP/M utility ERA.    It supports  wild
  4. cards and lists of arguments. The syntax is:
  5.  
  6.     DL <filename>
  7. or    DL <filename>, <filename>, .... , <filename>
  8.  
  9. DL is written in assembler,  and replaces a BDS C version that    I
  10. have used for quite some time.    It was actually written more as a
  11. showcase example of how to use my subroutine library,  JLIB, than
  12. anything  else.  The source code is provided in this package,  to
  13. give  you an idea how the library works.  The library  itself  is
  14. available from the CMPSIG of CompuServe.
  15.  
  16. DL was written to be super-small and fast,  as befits an oft-used
  17. utility.  The  main  program  is  165 bytes (most  of  those  are
  18. messages),  and  with  all subroutines linked in it comes  in  at
  19. under  700.  In spite of this,    it has most of the  features  one
  20. would expect. As I said, it supports lists of multiple filenames,
  21. each   with  optional  wildcard  characters.   Arguments  may  be
  22. separated by one or more blanks,  and an optional comma. Such are
  23. the advantages of a nice subroutine library.  DL also echoes  the
  24. names  of the files being deleted,  and will tell you if it can't
  25. find or can't delete any of the files.    Like most good    programs,
  26. if you type a bad command line,  or just DL with no arguments, it
  27. will print a "usage" error message,  showing the right way to use
  28. it.
  29.  
  30. On  the  other hand,  DL was deliberately written to not  try  to
  31. "protect  you  from yourself." There is no query mode a la  ERAQ,
  32. and if you type
  33.  
  34.      DL *.*
  35.  
  36. DL will cheerfully delete all visible files. A word of _WARNING_:
  37. since DL supports multiple arguments, the command
  38.  
  39.      DL FOO*.*
  40.  
  41. tells  DL  to delete all files beginning with the  three  letters
  42. "FOO", and having any extension at all. But the command
  43.  
  44.      DL FOO *.*  <note the space>
  45.  
  46. tells  it  to delete the file FOO,  and then  delete  ALL  files.
  47. Someone  has  already been bitten by this one.    So  _WATCH_  your
  48. space bar!
  49.  
  50. Because  of the emphasis on speed,  DL does not expand    wildcards
  51. for the display. That is, if you type
  52.  
  53.      DL FOO.*
  54.  
  55. DL  will  echo "Deleting FOO.*",  rather than expanding the  name
  56. into a list.  Several people have requested the expansion,  and I
  57. will probably add it in a later version.  But be aware that to do
  58. so would slow DL down a fair amount.  SO I will probably continue
  59. to use this version, and you may prefer it also.
  60.  
  61. Jack W. Crenshaw
  62. P.O. Box 15888
  63. Tampa, Fla. 33684
  64. CIS 72325,1327
  65.