如何检测 doc 文档是否受密码保护
我有一个包含大量文档文档的文件夹,我需要将它们的上下文上传到数据库中。问题是其中一些受密码保护,而我不知道密码。我想跳过它们,但我不知道如何检测是否存在密码保护。
PS 编程语言是C#。
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#.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些链接似乎回答了您的问题:
了解 Word 受密码保护
在批处理中跳过受密码保护的文档
These links seem to answer your question:
To know Word is password protected
Skipping Password-Protected Documents in a Batch Process