home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
vrac
/
zndel21.zip
/
ZNDEL.DOC
< prev
next >
Wrap
Text File
|
1994-11-01
|
4KB
|
117 lines
ZNDEL version 2.1 - Public Domain / Freeware
Exclusive-Delete utility ( originally 'Zip-Not-DEL' ? )
This program deletes all the files in the current directory
except archives, files specified on the command line, and
files marked as system, hidden, or read-only.
Very convenient for cleaning up after de-archiving, e.g in
working- and download directories.
Usage:
ZNDEL [/Y] [filespec (filespec) ] delete all but filespecs & archives
└──> assume YES on all prompting (useful in batch files)
ZNDEL /S show current workdir assignments
ZNDEL /W [workdir (workdir) ] assign working directories
ZNDEL /? show the help text
Examples:
delete all but the assembler sources ZNDEL *.asm
to keep prog1.pas, prog2.txt etc. ZNDEL prog?
combined effect of above examples ZNDEL prog? *.asm
the same, without prompting ZNDEL /Y prog? *.asm
Configuration:
You can configure ZNDEL to work automatically without
prompting for quick cleanups in specific directories.
Make sure to specify only simple directory names, do not
include drive ID's or subdirectories, for example:
ZNDEL /W download stuff temp
This makes ZNDEL recognize these directories or any of
their subdirectories as special working directories, in
which ZNDEL will never ask for confirmation.
The commands C:\DOWNLOAD\GAME> ZNDEL
and C:\COMMPROG\STUFF\MISC> ZNDEL
will both work without confirmation because GAME is a
subdirectory of DOWNLOAD, and MISC is a subdir of STUFF.
Tech notes & details:
The included source file ZNDEL.PAS was tested and
compiled using Borland Pascal 7.0.
For configuration, the .EXE file itself is modified,
which will not work when it is compressed by an
executable compressor like LZEXE or PKLITE.
Configuration will work OK when ZNDEL.EXE has
been renamed.
Because wildcards in ZNDEL are used to specify files
to save rather than files to delete, the DIR wildcard
convention, which is much more flexible than the
DEL wildcard (= internal MS-DOS) convention, is
simulated with all its details and quirks.
For example, in DIR style, "." and "*" both mean "*.*",
and "progname" means "progname.*".
All output can be suppressed or redirected, e.g. by
redirecting to the NUL device, as in ZNDEL /Y > NUL
Pascal programmers may find some of the code useful for
their own programs, especially the redirection routines,
the self-modification trick including a "binary file search"
routine (which works on files of unlimited size) and the
wildcard evaluation. Use the code any way you like.
Legal stuff:
There is no warranty of this software's suitability for
any purpose, nor any acceptance of liability, express or
implied. By using this free software, you agree to this.
Version history:
Version 2.1 November 1, 1994
New in version 2.1
- fixed bug in redirection detection
- confirmation prompt will now bypass redirection
Version 2.0 August 17, 1994
New in version 2.0 :
- recognizes 12 of the most common archive format extensions
- full DIR-style wildcard support
- confirmation asked before deleting
- no confirmation needed in assigned working directories
- realistic limits & safety checks for maximum number of files
- switch to override prompting, useful in batch files
Version 1.0 (Original) Written Sept. 21, 1991 by G. Palmer
Original: Written Sept 21, 1991 by G.Palmer