Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to check if a word file have a password?

$
0
0

Hello,

I built a script that converter doc file to docx,

But I had a problem that there is doc file with a password that i can't access them and then the script hang.

I look for option that check if the file have a password BEFORE I OPEN HIM.

nvm I using Documents.Open Method for open the file.

Thanks!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>