starlight has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know if it's possible to change the properties you find on Windows files when you right-click and choose "Properties" > "Summary" tab? I'm trying to change properties such as "Comments" or "Category" or "Keywords".

I have searched through File::Spec and Win32::File with no luck. Many thanks for reading my plea for help.

Replies are listed 'Best First'.
Re: Changing file Properties on Win32
by planetscape (Chancellor) on Sep 22, 2005 at 23:43 UTC

    You might need to use Win32::OLE to automate the application which created the file. I note in the Object Browser for MS Word, for example, that you can access the DocumentProperties collection (such as "Comments", "Category", or "Keywords") via VBA, and what you can access via VBA you can access using Perl and Win32::OLE. See the responses to Win32:: OLE MS Word Table for links to great sources of information on translating VBA and learning more about Object Models.

    HTH,

    planetscape