Programatically change Title of .WMV file?

  • Thread starter Thread starter unified
  • Start date Start date
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.
 
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
 
Back
Top