Walk a directory tree, check if docs are password protected, log ones that are?
I need to walk a series of directory trees, look at each file and log whether it's password-protected or not. For the .doc format, I can just point the unix "file" command at the trees and grep on "Security: 1", but that doesn't work for .docx, which just shows up as an archive.
I've found some vb that works by logging an error on bad passwords, but it's a horrible kludge and not reliable. I've also found lots of shady freeware/payware.
Anyone found (or paid for) something that works well?