Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default How do I Access, File Properties, of Non-office files?

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default How do I Access, File Properties, of Non-office files?

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How do I Access, File Properties, of Non-office files?

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
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?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How do I Access, File Properties, of Non-office files?

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error after chaging file access in Office 2007 armaSANEA Excel Programming 0 April 21st 08 03:16 PM
opening excel files from access 2003, win xp, office 2003 Nugimac Excel Discussion (Misc queries) 2 April 26th 07 12:32 PM
How can I access/display File -> properties in a cell Denny Excel Discussion (Misc queries) 1 March 4th 05 02:22 PM
how do i create an access code sheet to number my office files an. dana New Users to Excel 1 February 12th 05 03:49 AM
How to open a specific MS office file using button in Access? ryan Excel Programming 2 December 14th 03 02:46 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"