call SysFileTree 'x:\',files,'s','+****','-****'
to clear the archive attribute of all files on a disk (partition). I've recently discovered a few anomalies with this.
Sometimes, the archive attributes get cleared except on the last file returned on which the archive attribute stays.
I've seen cases where, probably on a single file on the partition, archive gets cleared, but hidden and system get set. However, I can't reproduce that fight now.