odog502 has asked for the wisdom of the Perl Monks concerning the following question:
I have a basic Win32::OLE question. Im just trying to retrieve the values of properties for files using OLE. Specifically I want to retrieve the "Date Picture Taken" value from my JPG files. But to start off I cant even get these basic properties...
#!/usr/local/bin/perl use Win32::OLE('in'); $tp = Win32::OLE->GetObject("C:\\testpic-1.JPG"); print "Readable Attribute Value: $tp->{'Readable'}\n"; print "File Name: $tp->{'FileName'}\n";
When I run this I get the following output:
C:\>test.pl Readable Attribute Value: [object] File Name: [object] C:\
Can someone please tell me how to retrieve file properties and specifically the "Date Picture Taken" property?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting file attributes/properties using Win32 OLE
by Ollie Jones (Novice) on Jan 04, 2010 at 03:24 UTC | |
by odog502 (Initiate) on Jan 12, 2010 at 03:04 UTC | |
|
Re: Getting file attributes/properties using Win32 OLE
by Anonymous Monk on Jan 03, 2010 at 22:41 UTC | |
by odog502 (Initiate) on Jan 03, 2010 at 23:23 UTC | |
by Anonymous Monk on Jan 04, 2010 at 01:41 UTC |