Z A B Z e r o A l l B u t Version 1.0 January 1997 This program deletes all the files/subdirectories in the current directory but preserves the files that are specified. This program is a mix of two really usefull utilities, that is "DAB" ("Delete All But", Copyright Scott R. Anderson) and "ZERO" (Copyright Kim Young Jae). The first one is designed to delete ALL files EXCEPT those which are specified, and the second one is equivalent to DOS' DELTREE program. ZAB is therefore able to delete all the files/subdirectories in the current directory, and to preserve the files you specified. Of course you can specify as many files as DOS allows you to (generally the maximum is 128 characters). You can also use the DOS' wildcards "?" and "*". ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ EXAMPLES: Let's suppose you have the following directory structure: UTILS ³ FILE_ID.DIZ ³ UTILS.ICO ³ ÃÄÄÄGRAPHIC ³ ÃÄÄÄDRAW ³ ³ ...some files... ³ ³ ³ ÀÄÄÄPAINT ³ ...some files... ÀÄÄÄMUSIC ÃÄÄÄPLAY ³ ...some files... ³ ÀÄÄÄRECORD ...some files... HELP_ME.DOC MY_REC.DOC If you want to: þ Delete everything (including directories GRAPHIC and MUSIC, and their subdirectories) but keep the file UTILS\FILE_ID.DIZ: ZAB FILE_ID.DIZ þ Delete everything but keep all the files in the directory MUSIC\PLAY: ZAB MUSIC\PLAY\*.* þ Delete everything but keep the files FILE_ID.DIZ and UTILS.ICO, and the files MUSIC\RECORD\*.DOC: ZAB *.* MUSIC\RECORD\*.DOC þ Delete all files in every subdirectory, but preserve FILE_ID.DIZ and keep all directories names (the directories will still exist, but there won't be anything in them): ZAB -s FILE_ID.DIZ þ If, like me, you have some big ZIP-files (created with ZIP -rp) that create a lot of directories, ZAB is all what you need! Let's assume you have unziped SOUNDS.ZIP (PKUNZIP -d SOUNDS.ZIP) and it has made 25 subdirectories... Now, you want to clean your hard disk and only keep the ZIP file? Nothing more easy: ZAB SOUNDS.ZIP ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ HISTORY: þ v1.0, January 1997 First release (no, really !?!). I think it should work on any computer starting with the 80386, but as Murphy says: "Variables won't, constants aren't". I think this greatly resumes the problem... Fred, my main beta-tester, has told me to change everything in the program's philosophy. Maybe it will come in a future release, 'coz nothing's impossible! ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ZAB is distributed as CARDWARE. That means that if you find it usefull, you can send me a post card/email card. Feel free to contact me for any questions or comments about the program. Please distribute this program !!! E-mail: vauclair@lnf.cnrs-mrs.fr (btw, this is my father's address) WEB: it.will.come.soon.i.hope (I'm currently looking for an host :-( Mail: Sebastien VAUCLAIR Rce Ste Victoire i 29, Av. St Jerome 13100 AIX-EN-PROVENCE FRANCE