home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
DUPDEL00.ZIP
/
DUPDEL.DOC
< prev
Wrap
Text File
|
1992-10-08
|
3KB
|
59 lines
DupDel version 0.0
This is just a simple REXX cmd file that allows a user to find all
duplicate named files on one or multiple drives. It uses VREXX PM
extensions to query the user of which file to delete.
To use, type:
DUPDEL path(s) filter(s)
ex: DUPDEL C: *.ZIP (find all .zip files on C:)
DUPDEL C: D: *.ZIP (find all .zip files on both C: and D:)
DUPDEL C: D: *.ZIP *.ARC (find all .zip and .arc files on C: and D:)
DUPDEL C:\OS2 *.CMD (find all .cmd files in dir OS2 or lower)
The order of the arguments are not important. A path statement is
assumed if the second position of the argument is a colon ':'.
This package requires the function package VREXX2 from IBM (available
on most BBS's.
The program will display a seperate screen for each duplicate file.
Each screen has a selection screen where files to be deleted is marked
for deletion. As the selection screen is limited in width, a window
is also show with the first 80 positions of the file path. After all
files are marked, the user has the choice of either deleting the
marked files or creating a batch .CMD file which can be viewed and
modified prior to running (or deleting).
Except for the final optional file, no intermendent files are created.
The routine works on either HPFS or FAT drives. Let me know if you
experence any problems.
Tony Thigpen
115 West York Court
Longwood, FL 32779
(407) 682-6544
Technical Notes:
I am an out of work VM systems programmer who has written major VM
applications using VM/REXX for the last 6 years. Due to this, some
mainframe methods are in my code. Some VM users do not have very
much space on read/write disk available, so large intermendent files
are not used if posible. The internal file sort is due to this. To
create a sortable file for HPFS file names, just the sort key area
of the file would have to be 254 positions. Using REXX varables
instead is much faster than creating a file, sorting it, and
then re-reading the final file.
I have written a REXX routine in VM that expands copy statements for
REXX code copies. I will be working on porting the code next. The
routines I wrote several years ago expand the copies in the actual
code, tracks which members copies which files, and will remove copy
code and recopy new routines if any copied routine (multilevel) changes.
That is why I performed some generic routines in DUPDEL instead of
inline code. I plan on making them generic copybooks (COBOL term).