title: How to get a list of password protected *.xlsx files in a directory containing many Excel files?
body: <p>Is there a way to see if *.xlsx files in a folder are password protected by reading the directory?</p>
  
  <p><strong>Example directory text file</strong></p>
  
  <p>1.xlsx<br>
  2.xlsx<br>
  3.xlsx<br>
  4.xlsx  </p>
  
  <p><strong>Example results text file</strong></p>
  
  <p>1.xlsx - protected<br>
  2.xlsx<br>
  3.xlsx - protected<br>
  4.xlsx</p>
  
  <p>I basically want to see which ones out of my directory are password protected without trying to open them. I am wondering if there is a directory switch. This is on a Windows machine by the way.</p>