FileProps Package

Author: WaynePhillipsEA

The FileProps contributed package provides access to Windows shell file properties through a Virtual-COM wrapper. It exposes a predeclared FilePropertyExplorer class that opens a file and returns a FileProperties collection; each entry in that collection is a FileProperty object with the system name, localized name, unique ID, and current value of one shell property.

Classes

  • FileProperties – a read-only collection of Windows shell properties for a single file, returned by FilePropertyExplorer
    • Count – returns the number of properties in the collection
    • FilePath – returns the full file path of the file that was opened
    • Item – returns the FileProperty object at the given index, name, or ID in the collection
  • FileProperty – one Windows shell property of a file
    • ID – returns a unique identifier string for the shell property
    • Name – returns the system identity name of the property
    • NameDesc – returns the localized display name of the property
    • Value – returns or sets the current value of the shell property as a Variant
    • ValueDesc – returns the current value of the property as a localized string
  • FilePropertyExplorer – a predeclared factory class that opens a file and returns a FileProperties collection of its Windows shell properties
    • BrowseAndOpenFile – displays a file-open dialog and returns a FileProperties collection for the selected file
    • OpenFile – opens a file by path and returns a FileProperties collection of its shell properties