in reply to Determine if a file is password protected

its probably a extended file attribute, Win32::OLE + wshell script
  • Comment on Re: Determine if a file is password protected

Replies are listed 'Best First'.
Re^2: Determine if a file is password protected
by CountZero (Bishop) on Feb 19, 2010 at 21:32 UTC
    A PDF-file not being specific to Windows is unlikely to yield its password protection status in a Windows extended file attribute and if it did, at the very least the OS must have opened it to peek inside!.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James