Dec 272017
 
This utility is useful in clean out directories where the user wants to retain only certain classes of files. C source code included.
File ~DEL2.ZIP from The Programmer’s Corner in
Category File Managers
This utility is useful in clean out directories where the user wants to retain only certain classes of files. C source code included.
File Name File Size Zip Size Zip Type
~DEL.C 1745 779 deflated
~DEL.DOC 1431 739 deflated
~DEL.EXE 8302 5468 deflated

Download File ~DEL2.ZIP Here

Contents of the ~DEL.DOC file


This utility is useful in clean out directories where the user wants
to retain only certain classes of files. An example should clearly
describe its usefulness.

~DEL *.C *.H

This will delete all files in the current directory except those with
either the .C or .H extension.

The general command line syntax is

~DEL filespec ...

where filespec (can be more than one) is any DOS file name (with path
if desired) with wildcards. If a path is specified in one filespec
it must be specified identically for all filespecs in the command
line or ~DEL will not work as specified! Please use this utility
with care!!

The source code is in C and was compiled using Borland C++ 2.0. It
must be linked with Borlands WILDARGS.OBJ found in the BORLANDC\LIB
directory. Please report bugs and suggestions to me through The
Programmer's Connection (user 2045). Thanks!!

____________________________________________________

Note!! - BUG FOUND!!

When using ~DEL with a mixture of wildcard arguments and non-wildcard
arguments in lower-case, the non-wildcard arguments in lower-case
were not sorted correctly with the wildcard arguments which
WILDARGS.OBJ converts to upper case. This can result in accidental
deletion of files!! I've corrected this bug and the new source and
executable are in the ZIP file. One thousand and twenty four
apologies!! (This should not count as a valid upload)


 December 27, 2017  Add comments

Leave a Reply