LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.general.discussion
external usenet poster
 
Posts: 2
Default Changing properties of a file with VBA

"Conan Kelly" wrote in message
...
Hello all,

x-posted:
microsoft.public.excel.programming
microsoft.public.vb.general.discussion

I was wondering if it is possible to change a property of a file
(right-click file in Windows Explorer (or [Alt] + [Enter]) Summary tab
"Advanced" button desired property) using VBA? Specifically, I want

to change the "Title" property of an MP3 file.

I'm using VBA in XL 2003 to do this. Right now, I have a loop that will
loop through each file and change the name of the file according to my
specifications using the File System Object in the Scripting Runtime
library. I want to have the code change the "Title" property of the file
to the file name (minus the extension), but it doesn't look like I can
access these properties using the FSO (or any other object) in the
Scripting Runtime library.

Does anyone know if it is possible to change these properties via code?
What objects I need to use/libraries I need to reference?

Thanks for any help anyone can provide,

Conan Kelly



---------------------------
"Smokin' weed kills your brain cells. Drinkin' only screws up your
liver...ya got 2 a those."
- Earl Hickey (NBC's "My Name is Earl")


MP3 files may have ID3 tags. In general there
are two types of tag:

ID3V1 tags are simple, a 128 byte block of data that is
appended to the end of the file & contain

String literal "TAG"
Artist (30 bytes)
Title(30)
Album(30)
Comment(30)
Year(4)
Genre(1) ' for a lookup of standard genres

ID3V2 tags are more complex, variable in length, and, except
for some versions, are prepended at the beginning of the file. They
allow for all of the above info plus much more, such as
Custom Genre, Composer, Lyrics, Album image, BPM, etc.

Some references:
http://id3.org/ for general reading
http://id3.org/Developer_Information

This page has code to read/write your own tags:
http://www.vbaccelerator.com/home/VB..._Tags_Code.asp

Since you state VBA, you will likely need to adapt this
code to your own usage.








 
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
File Properties Modified Date not changing ALEX Excel Discussion (Misc queries) 0 February 6th 07 02:59 PM
changing the properties of an excel file [email protected] Excel Programming 2 January 19th 06 10:57 AM
Cell changing it's properties jtpeters New Users to Excel 0 December 27th 05 10:09 PM
Properties transferring from excel cells to word file properties lubo Excel Programming 4 July 12th 05 11:24 AM
Changing the File Save Properties Kirk[_2_] Excel Programming 1 July 25th 03 07:20 PM


All times are GMT +1. The time now is 12:14 PM.

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"