This should be an easy one that has probably been asked before. We all
know that PURGEDIR will only purge empty directories if ;NOTREE is
specified. But how does one check for directory "emptyness"? i.e.:
IF DESPAIR TRUE THEN
PURGEDIR
/MYACCT/MYGROUP/myHFSdir/anotherHFSdir/yetanotherHFSdir/;NOTREE
ENDIF
Or, using MPEX's REPEAT:
REPEAT
--(insert some magical check for emptiness check here)--
SETVAR VANITY TRUE
IF VANITY TRUE THEN
PURGEDIR /MYACCT/MYGROUP/myHFSdir//;notree
ENDIF
SETVAR VANITY FALSE
FORFILES /MYACCT/MYGROUP/myHFSdir//@
Tracy Johnson
Measurement Specialties, Inc.
BT
NNNN
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *