home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / ADLG225.ZIP / DELF11.ZIP / DELF.DOC < prev    next >
Text File  |  1991-11-04  |  5KB  |  122 lines

  1.  
  2.                       
  3.                                  DELF.COM
  4.                          (C)1989 Jeffrey S. Morley
  5.                             All Rights Reserved
  6.  
  7.                                 Version 1.1
  8.  
  9.  
  10. 4DOS users, please don't leave without reading the 4DOS NOTES below..
  11.  
  12. Delf.Com is a replacement for the DOS command DEL.  It isn't for everyone,
  13. but has value for some people, and in some instances.  I wrote Delf.Com
  14. to meet a need that I have, but see no reason not to share with the PC
  15. community.
  16.  
  17. The differences between Delf.Com and the DOS command DEL are twofold. 
  18.  
  19. First, Delf WILL NOT ask "are you sure(y/N)?" when presented with a
  20. file specifcation resulting in "*.*".  This is of value to me in batch
  21. files, and because YES DAMNIT, I'M SURE OR I WOULDN'T HAVE ASKED.
  22.  
  23.  Alright, for those who aren't perfect like me, I have included two
  24.  versions of Delf.Com.  One is named Delf.Com (just a coincidence),
  25.  and will NOT ask "are you sure(y/N)?".  The other is named Delfyn.Com,
  26.  and WILL prompt you before executing on *.* filespecs.  I won't go into
  27.  the subtilties of the REN command here...
  28.  
  29. Second, Delf allows the BUT parameter, which has the effect of erasing
  30. everything in the drive\path\filespec specification EXCEPT the indicated
  31. filespec.  This means that "DELF BUT *.COM" will erase all files in the
  32. current directory EXCEPT the .COM files, and that "DELF BUT A:*.BAT" will
  33. erase all files on A: EXCEPT the .BAT files.
  34.  
  35.  
  36. Delf.Com is completely compatible with the way that DOS parses commands as
  37. far as I have been able to tell.  This means that the Delf command will 
  38. behave exactly as you would expect the DEL command to.  But, novice users
  39. should be aware that it is not going to give you second chances.  Be sure
  40. you are pretty comfortable with DOS subdirectories and filespec/wildcards
  41. before you switch from DEL to Delf.  Your minimum PROMPT statement in 
  42. AUTOEXEC.BAT shoud be "PROMPT $P$G" so the current path is always displayed
  43. on the command line, otherwise you will be meeting a tall dark stranger
  44. named Peter Norton very soon.
  45.  
  46. Examples:
  47.  
  48. COMMAND:                 WILL ERASE:
  49.  
  50. DELF *.*                 Everything in the current directory
  51. DELF *.???               Same thing...
  52. DELF C:\DBASE            The DBASE directory and/or DBASE. in C:\
  53. DELF A:*.*               Everything in the current directory of A:
  54. DELF C:\TEMP\*.BAT       All .BAT files in C:\TEMP
  55. DELF D:\123\BUDGET.WK1   The BUDGET.WK1 file in D:\123
  56.  
  57. DELF BUT *.*             Nothing...
  58. DELF BUT *.COM           Everything in the current directory EXCEPT .COM's
  59. DELF BUT DELF.COM        Everything in the current directory EXCEPT DELF.COM
  60. DELF BUT C:\TEMP\*.BAT   Everything in C:\TEMP EXCEPT the .BAT's
  61.  
  62. Just as a thought, CED could be used to assign the command DEL to Delf.Com.
  63. That way you don't have to teach your hands new habits.
  64.  
  65. *****************************************************************************
  66. A NOTE TO 4DOS USERS
  67. *****************************************************************************
  68.  
  69. 4Dos is a fantastic replacement for COMMAND.COM, and I for one will "never go
  70. back" (E. Murphy).  The DEL command as implemented by 4Dos version 2.1 and
  71. below leaves a bit to be desired however.  They are using a routine that 
  72. forces the command to look at each file as an individual, which causes the
  73. DEL *.* command to take a very long time in a crowded directory.  DELF will
  74. behave precisely as MicroSoft's DEL does, and is a whole lot faster.
  75.  
  76. Now, the problem is that few of us could ever train ourselves to use "DELF"
  77. in place of "DEL" when flying around a hard drive pretending to be productive.
  78. The solution is to use the 4Dos "ALIAS" command.  This is one of the best
  79. parts of 4Dos!  What you do is issue the following command in AUTOEXEC.BAT:
  80.  
  81. ALIAS DEL `C:\UTILS\DELF`  (Watch that you use ` and not ')
  82.  
  83. This will result in all DEL commands in DOS being re-routed to the DELF
  84. command.  Since Delf.Com works exactly like DEL, you will soon forget it
  85. is even there.  It will just be a whole lot faster, won't assume that you
  86. are as dumb as you look, and will allow the optional BUT parameter.
  87.  
  88. I added another ALIAS to my startup file, so that I don't have to waste
  89. a keystroke on the space between DEL and BUT (Sheesh! This guy is lazy!)
  90.  
  91. ALIAS DELBUT `C:\UTILS\DELF BUT`
  92.  
  93. By the way, if you worry about not being able to get to the original DOS
  94. or 4Dos DEL command, remember that ERASE means the same thing, and won't
  95. be re-routed to DELF.
  96.  
  97. *****************************************************************************
  98.  
  99. Delf.Com is NOT PUBLIC DOMAIN.  I reserve all rights to it, with the
  100. exception noted below:
  101.  
  102. You may use and distribute Delf.Com without any expectation of renumeration
  103. by me.  This means that it's MINE, but you can use it for free, and give it
  104. to friends and neighbors.
  105.  
  106. I ask only that you distribute the file in its original condition, complete
  107. with unmodified documentation.  I also ask that you download a copy of 4Dos
  108. from your local bulletin board, and after becoming completely hooked,
  109. register the program with it's authors.
  110.  
  111.  
  112. Delf.Com was written using QuickBasic 4.5, with significant help from
  113. Hammerly Computer Services' ProBas version 3.0.
  114.  
  115. Version 1.1 is a minor cosmetic bug fix ("Can't match *.*\*.*")
  116.  
  117.  
  118. Jeffrey Morley, Sysop
  119. The Interconnect BBS
  120. (703)425-2505
  121.   
  122.