PC Review


Reply
Thread Tools Rate Thread

How do I Access, File Properties, of Non-office files?

 
 
Benjamin
Guest
Posts: n/a
 
      15th Sep 2009
I'd like to access the file properties of non-office files.
I've got drawing files, pdf, and several other formats.
It's got to be some sort of generic way to edit the custom value of the file.

i.e. right click a file, properties, summary tab, title, subject, author,
category etc.... sometimes I get a custom tab with additional values..

I'd like to be able to read and write to those fields in a file. I believe
it the metadata of a file.

Can someone lead me in the right direction here?
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      15th Sep 2009
Try searching this forum for file system objects
--
HTH...

Jim Thomlinson


"Benjamin" wrote:

> I'd like to access the file properties of non-office files.
> I've got drawing files, pdf, and several other formats.
> It's got to be some sort of generic way to edit the custom value of the file.
>
> i.e. right click a file, properties, summary tab, title, subject, author,
> category etc.... sometimes I get a custom tab with additional values..
>
> I'd like to be able to read and write to those fields in a file. I believe
> it the metadata of a file.
>
> Can someone lead me in the right direction here?

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      15th Sep 2009
I have code to get and set both custom and built-in properties from
open or closed workbooks at

http://www.cpearson.com/excel/DocProp.aspx

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Tue, 15 Sep 2009 08:56:01 -0700, Benjamin
<(E-Mail Removed)> wrote:

>I'd like to access the file properties of non-office files.
>I've got drawing files, pdf, and several other formats.
>It's got to be some sort of generic way to edit the custom value of the file.
>
>i.e. right click a file, properties, summary tab, title, subject, author,
>category etc.... sometimes I get a custom tab with additional values..
>
>I'd like to be able to read and write to those fields in a file. I believe
>it the metadata of a file.
>
>Can someone lead me in the right direction here?

 
Reply With Quote
 
Harry Sorensen
Guest
Posts: n/a
 
      26th Oct 2009
Look at the Ms wia dll it allows you to read write image properties
BUT not IPTC or XMP or Picasa People or GPS tags

Using shell
Sub tryita()
Dim DSO As DSOFile.OleDocumentProperties
Dim CustProps As DSOFile.CustomProperties
Dim ii As Integer


Set DSO = New DSOFile.OleDocumentProperties

DSO.Open "c:\5\dscf1220.jpg", True, dsoOptionDefault
Set CustProps = DSO.CustomProperties
Cells(2, 2) = CustProps.Count

For ii = 0 To CustProps.Count
Cells(ii + 5, 3) = CustProps(ii).Name
Cells(ii + 5, 6) = CustProps(ii).Value
Next ii

DSO.Close


End Sub
Gives a combination of the KeyWords from both groups which can be merged..

AND then writen using wia...

The Windows API Code pack ... dll
and Microsoft.WindowsApiCodePack.Shell ...DLL
Seem to ofer a solution IF ANYONE can get the dll that will reference from
excel

HELP Help and F1
Harry S


"Benjamin" wrote:

> I'd like to access the file properties of non-office files.
> I've got drawing files, pdf, and several other formats.
> It's got to be some sort of generic way to edit the custom value of the file.
>
> i.e. right click a file, properties, summary tab, title, subject, author,
> category etc.... sometimes I get a custom tab with additional values..
>
> I'd like to be able to read and write to those fields in a file. I believe
> it the metadata of a file.
>
> Can someone lead me in the right direction here?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"The file <file>.pst is not a personal folders file" Tanya J via OfficeKB.com Microsoft Outlook Discussion 10 7th Feb 2005 01:47 AM
Incorrect File Name in the File Open or File Save Dialog Boxes =?Utf-8?B?VGltIE1hY3JpbmE=?= Windows XP Internet Explorer 0 16th Jan 2005 06:33 AM
My "Open File" screen freezes when trying to open a file or attach a file. =?Utf-8?B?RGF2ZQ==?= Windows XP Help 0 30th Dec 2003 04:46 PM
file type changed from "file folder" to "file" in XP Pro J. Windows XP General 2 14th Dec 2003 08:47 PM
double click doesn't open the file// instead file->open->...the file open norma nks Microsoft Word New Users 1 3rd Oct 2003 03:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:44 PM.