Thank you for all your help and pointers.  I was able to accomplish what the
boss wanted, but not by using Perl. 

Microsoft puts out a dll call DSOFile.dll that allows access to the extended
properties by any COM-enabled language.  I was able to use VBScript in an
ASP page to change the properites.  If you would like the code, email me
directly and I'll send it to you.

I haven't given up on Perl and I'll let you know if I can find a way.

Thank you....
Tom


-----Original Message-----
From: Dave Roth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 21, 2004 2:46 AM
To: Tony White; Phillips Thomas E Contr AFMC/ITON;
[EMAIL PROTECTED]
Subject: RE: Setting extended File Properties


You guys are talking about a Win32 thing called "structured storage". 

The good news is that this stuff is documented in MSDN:
        
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg
/the_summary_information_property_set.asp

The bad news is that it isn't really easy.  

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Tony White
Sent: Tuesday, April 20, 2004 2:22 PM
To: Phillips Thomas E Contr AFMC/ITON;
[EMAIL PROTECTED]
Subject: RE: Setting extended File Properties

Well, I can't give you the answer, but I think I can point you in the
right direction.

I had an idea that perhaps this information is stored as an alternate
Data Stream.  I capitalized that because it's a special concept in NTFS.
Anyway, I ran a script called "streams.pl" (from David Roth's book,
"Win32 Perl Scripting") on a test file where I had modified the "Title"
property and sure enough, I found a stream called "?SummaryInformation".
Note the special character in the beginning.  I have no idea how to
access this stream.  I tried running another script from Roth's book
called "streamdump.pl" using that exact name, but I got an error.

Anyway, my advice would be to do some searching on Microsoft's TechNet
on the subject of "streams" and "SummaryInformation".  Or maybe
something like +"file streams" +"SummaryInformation" on Google.

Good luck, and post back if you find anything.

P.S.  No - I didn't find anything useful in Win32, Win32API::File,
Win32::AdminMisc, nor Win32::NetAdmin.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of

> Phillips Thomas E Contr AFMC/ITON
> Sent: Friday, April 16, 2004 2:49 PM
> To: '[EMAIL PROTECTED]'
> Subject: Setting extended File Properties
> 
> 
> 
> 
> Does anyone have any examples of or know how to change the extended 
> properties of a file (Comment, Title, Subject, Keywords,
> etc.) from within
> Perl?
> 
> Have been looking at Win32::OLE, but I have not been able to view or 
> change these extended properties.
> 
> Thank you,
> Tom
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to