On Dec 13, 7:10*pm, Randy <spam.eastl...@gmail.com> wrote:
> This is just a quick algorithm for something that I am about to write:
>
> Dim ActiveFolder as string
> Dim fFileName as file '??
> Dim strArtist as string
> Dim strAlbum as string
> Dim strTitle as string
>
> For each fFileName in ActiveFolder
> * *'Replace Contributing Artist with strArtist
> * *'Replace Album with strAlbum
> * *'Replace Title with strTitle
> Next
>
> Does anybody know what the code is for the three lines that begin with
> Replace inside the loop?
>
> Also, what is the variable type for fFileName?
>
> Thanks,
> Randy
Actually, you're just trying to modify the metadata attributes of a
media file, highly possible as an Windows Media File, such as WMA. In
case of this, you need to deal with some API like Windows Media Player
or Windows Media SDK. Changing such attributes of a music file can be
done using Windows Media Player control which can be added to your
toolbox. A similar solution, i had posted here:
http://groups.google.com/group/micro...811f28ca0ee7a7
Me.AxWindowsMediaPlayer1.mediaCollection.add _
("c:\file.wmv").setItemInfo("Title", "title_here")
A list of these attributes can be found here:
http://msdn.microsoft.com/en-us/library/dd743066(v=vs.85).aspx
Once you use the API, you're ready to change attributes in / or out of
a loop.
HTH,
Onur Güzel