Jump to content

Walk a directory tree, check if docs are password protected, log ones that are?


Recommended Posts

Posted (edited)

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?

Edited by pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 134 What is your preferred operating system (PC)

    1. 1. Operating systems:


      • MacOS
      • Windows 10
      • Windows 11
      • Windows Vista
      • ChromeOS
      • Other (reply)

×
×
  • Create New...