cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
guyjoules
Level 4

retrieve TITLE field from a file

hey there.


how do I retrieve the TITLE field from a file? you know, when you right-click a file, there is a summary tab. within, there are some fields. How do I get these in installScript (not MSI project)?

Thanks

Guy.
Labels (1)
0 Kudos

(4) Replies
Christopher_Pai
Level 16

It depends on the file. Some files store the properties in the document's default stream and some files create additional SummaryInformation streams to store the data.

I've never worked on a comprehensive/full-proof method so I can't give you an exact answer.
0 Kudos
guyjoules
Level 4

Thanks.

I need the title field from the summary tab, within the summary information of a file. this field is available for every file, so I guess that it's part of the NTFS.

is there a way to extract this information (or any other piece of information) from the summary information?

thanks!
0 Kudos
RobertDickau
Flexera Alumni

I'm not aware of a simple way; I gather the COM structured storage API functions, such as StgOpenStorageEx, will do this... (MSI files have a specific API to get this data, but I don't think those functions work on arbitrary files.)
0 Kudos
rchand445
Level 5

I'm not sure if this would help you or not - You can access extended file properties using Microsoft's dsofile.dll http://www.microsoft.com/technet/scriptcenter/resources/tales/sg0305.mspx
Additionally, it appears that there is a way to access certain properties using vb script: http://www.microsoft.com/technet/scriptcenter/guide/sas_fil_lunl.mspx?mfr=true
0 Kudos