Assess file properties

Joined
Apr 17, 2010
Messages
1
Reaction score
0
Hi, I have a folder full of hundreds of word documents (word 2002 version).

I need to loop trough all the docs in the folder and move them to 2 other folders. Now this itself is not an issue, however my criteria is.

What I need to do is assess the document to see if it is password protected and if so move it to one folder and if not move it to the other.

I'm not interested in hacking the password (I know what it is!), I just need to see if it is password protected or not.

Is there a way to do this efficiently without having code that tries to open each document and then use error trapping to identify that it is password protected when it fails to open?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Protection 2
Word Macro to insert text and save as PDF 4
Excel Excel macro and passwords 3
Protected network folder 2
Jhon the Ripper 4
Open file password 13
how to open the MS word doc 1
Password protecting a folder. 1

Top