Programatically change Title of .WMV file?

U

unified

How can I change the title of a .WMV movie file? DsoFile only works
for MS Office files. The title is one of the 35 extended properties
you can see when you right-click on the file.

I know this is possible because I did it before, but lost the source
code and related files a few months ago following a hard drive crash.

Thanks for any help you can give.
 
O

Onur Güzel

How can I change the title of a .WMV movie file? DsoFile only works
for MS Office files. The title is one of the 35 extended properties
you can see when you right-click on the file.

I know this is possible because I did it before, but lost the source
code and related files a few months ago following a hard drive crash.

Thanks for any help you can give.

If you have WMP 9 and above (I'd prefer 11 for that), you can do it by
adding Windows Media Player object to it your toolbox and drag it to
your form and place the code which calls setItemInfo:

Me.AxWindowsMediaPlayer1.mediaCollection.add _
("c:\file.wmv").setItemInfo("Title", "title_here")

When you right click it in the playlist and select the tab "content",
you will see it has been modified programmatically by you.

HTH,

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top