It appears to be a change in Windows 7. The following worked on XP64.
G:\>type x.pl use Win32::OLE; my $shell = Win32::OLE->new("Shell.Application") or die; my $folder = $shell->NameSpace("G:\\") or die; my $file = $folder->ParseName("X.doc") or die; for my $i (0..50){ my $attrib = $folder->GetDetailsOf($file, $i); print "$i) $_ >> $attrib\n" if ! $attrib eq ''; } print "-------------------------------------------\n"; G:\>x.pl 0) >> X.doc 1) >> 267 KB 2) >> Microsoft Word Document 3) >> 10/31/2009 8:13 AM 4) >> 10/31/2009 8:12 AM 5) >> 10/31/2009 12:00 AM 6) >> A 7) >> Online 8) >> Everyone 9) >> Scott R. Keszler 10) >> Test Document 13) >> 8 31) >> 8/3/2009 1:13 PM -------------------------------------------
OLE::Storage might work on Win7:
G:\>ppm install ole-storage G:\>ppm install unicode-map G:\>ppm install startup G:\>which ldat C:\Perl64\site\bin/ldat G:\>ldat X.doc Processing "X.doc" # Microsoft Office Word Document (Word.Document.8, 31.10.2009, 12:13:0 +5, rev 10 ) Title: Test Document Authress: Scott R. Keszler Organization: SRK Consulting Application: Microsoft Office Word Template: Normal.dot Created: 03.08.2009, 17:13:00 Last saved: 31.10.2009, 12:13:00 Done.

In reply to Re: Word Document Accessing Extended Attributes - Author by keszler
in thread Word Document Accessing Extended Attributes - Author by captain.moor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.