Is there a way I can find out which files have a password to open? I have ran across a bunch of word documents that are protected with a password. I do not need to know how to hack the password, just want to know if Dopus can identify the ones that are protected.
The script doesn't seem to run "as is"... threw some errors for me about the lines doing the typecastings. I can peek at it later tonight to see if the example in this script can be used easily to do what you want to do. For example - you could probably use the method displayed in that script in a slightly larger script written to recurse through a folder structure for all *.doc files, test them for password protection, and then do something like add the protected files to an Opus file collection... Stuff like that.
@Steje
I haven't tried the script yet.
Not sure at all as to why you're getting typecasting errors.
The files you used were all MS Docs ?
I'm using Open Office here.
I'm still PHP oriented and know only a bare minimum of VBScript.
After some good thought though I think your're right on this one.
If you can do the recursive search in VBScript, I think you may have it.
Adding the 5408 error trap result to a file collection seems the correct thing to do.
Great find by Christiaan !
I don't have a better idea.
Good Luck in your efforts when you have the proper time for this !