Want to validate doc/ppt/zip files if they are protected or not

Hi, I’m new to RPA.

I want to build a robot that checks if doc/ppt/zip files are encrypted or not.
For xls files, because Excel Application Scope automatically input a password and throws exception,
I could easily do that.

  1. What functionality can I use to implement same process for doc/ppt/zip files?
  2. Is there any way to check the code for ExcelActivities? (Want to know how they automatically input password)

isEncrypted

You can make a call to get the file attributes and assign it to a list that you can run through and check. This would likely be the most efficient way.
System.IO.File.GetAttributes(FilePath)

This will return a list of all the attributes set on the file including whether or not it is encrypted.