How do I delete files that DO NOT have the "A" (archive) attribute set via a batch/script?
Posted on 2007-03-26
This should be pretty easy (or so I think). How can I (via a batch file) delete all files that do NOT have the A (archive) attribute set (including subdirectories)?
Long story short, once our backup files are shipped to tape, the A attribute is cleared by the backup software. However these (really big) files are not removed. I want to run a script each night that cleans up files that have already been shipped (and thus do NOT have the A attribute set).