Reputation: 6557
I have a folder with lots of doc-documents and I need to upload their context into database. The problem is that some of them are password protected and I don't know the password. I would like to skip them but I don't know how to detect if password protection presents.
P.S. Programming language is C#.
Upvotes: 1
Views: 2371
Reputation: 2563
These links seem to answer your question:
To know Word is password protected
Skipping Password-Protected Documents in a Batch Process
Upvotes: 1