Laurie
Thu Oct 23 16:17:05 CDT 2008
Hi mayayana,
I guess I didn't fully understand your initial response. Here is an
output set from the code I posted for a file created by Windows Media
Player. Note that some of the data is duplicated e.g. 0 and 10, 9 and
16, 12 and 20
0 Name: Jamaican Rumba.wma
1 Size: 1,926 KB
2 Type: Windows Media Audio file
3 Date Modified: 17/08/2008 6:59 PM
4 Date Created: 24/10/2008 8:08 AM
5 Date Accessed: 24/10/2008 8:08 AM
6 Attributes: A
7 Status: Online
8 Owner: AMD4\default
9 Author: London Promenade Orchestra
10 Title: Jamaican Rumba
11 Subject:
12 Category: Classical
13 Pages:
14 Comments:
15 Copyright:
16 Artist: London Promenade Orchestra
17 Album Title: Wonderful World Of Melody Disc 3
18 Year:
19 Track Number: 5
20 Genre: Classical
21 Duration: 0:02:02
22 Bit Rate: 128kbps
23 Protected: No
24 Camera Model:
25 Date Picture Taken:
26 Dimensions:
27 :
28 :
29 Episode Name:
30 Program Description:
31 :
32 Audio sample size: 16 bit
33 Audio sample rate: 44 kHz
34 Channels: 2 (stereo)
The values I want to set are music related for MP3, WMA, and/or WAV
files and include the items:
10 Title:
16 Artist:
17 Album Title:
19 Track Number:
20 Genre:
However, as the files are for my own use only, it really doesn't matter
what items I assign the data to as I can then read it back with my code
from any of these fields. e.g. My five data items could be stored in
any the fields:
9 Author:
10 Title:
11 Subject:
12 Category:
13 Pages:
14 Comments:
15 Copyright:
24 Camera Model:
25 Date Picture Taken:
26 Dimensions:
27 :
28 :
29 Episode Name:
30 Program Description:
31 :
Hence, if you can give me a start to write to any of the fields, I will
be able to achieve my aim.
I have spent some time searching the web, but clearly I'm not asking the
right questions. That was why I posted here.
Regards
Laurie Comerford
mayayana wrote:
>> Thanks for confirming my current knowledge. Can you give me some
>> guidelines as to where I can find more information?
>>
>
> You still didn't indicate which properties you
> want to write. I'm not trying to give you a
> hard time. The different properties just don't
> fit into one system. Shell.App aggregates a
> lot of disparate data. For instance, if you need
> to change file times you can look here:
>
>
http://vbnet.mvps.org/code/fileapi/filedatetime.htm
>
> Some other properties may be stored in alternate
> data streams on NTFS systems, depending on file
> type. I think DOC files have their own system to
> store title, author, etc. JPG files have a different
> system for the same properties, using Microsoft's
> custom version of EXIF data tags. I don't know
> anything about music file data. They may have their
> own custom header storage options.
>
> Attributes can be most easily changed, but are
> yet again different from the other properties listed
> above.
>
> So... guidelines to find more info. about ALL properties?
> If you don't have the patience to clarify your needs to
> timewasting fools who answer posts in newsgroups, then I
> guess lots of Googling would be your best bet. :)
>
>
>