Home All Groups Group Topic Archive Search About

Trying to obtain the title property from Notepad, Word, etc...

Author
13 Jun 2006 2:49 AM
Scott
I hope I am just missing something easy, and that someone can point me in
the right direction, but I cannot seem to find out how to change the title
property of any random file using VB.NET.



For example, in Notepad, with a saved text file, one can right click on the
file and go to properties, and then go to the third tab [called Summary];
here there is a property called Title, and it is this that i wish to change,
and have found ways to get close to it, but not quite.



I know I can use this command to get ahold of some data from a file:

My.Computer.FileSystem.GetFileInfo Method



But in the documentation, as well as when running the code, it doesn't say
anything about being able to get or set or see the Title property.





Granted, my main goal in all of this is to be able to enable me to write a
program so that my MP3 player will have more descriptive titles, but even if
that weren't the case, I still would like to know why I'm missing the extra
part of the data for the file and can't change it.





Any help would be great.  Thanks so much for your time!



In peace.

Author
14 Jun 2006 9:34 AM
Vadym Stetsyak
Hello, Scott!

S> For example, in Notepad, with a saved text file, one can right click on
S> the file and go to properties, and then go to the third tab [called
S> Summary]; here there is a property called Title, and it is this that i
S> wish to change, and have found ways to get close to it, but not quite.

S> I know I can use this command to get ahold of some data from a file:

S> My.Computer.FileSystem.GetFileInfo Method

S> But in the documentation, as well as when running the code, it doesn't
S> say anything about being able to get or set or see the Title property.

S> Granted, my main goal in all of this is to be able to enable me to write
S> a program so that my MP3 player will have more descriptive titles, but
S> even if that weren't the case, I still would like to know why I'm
S> missing the extra part of the data for the file and can't change it.

for MP3 files there's special tag ID3v1 (ID3v2) tags, they can be modified
( http://www.codeproject.com/useritems/ID3v1_Editor.asp )


--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

AddThis Social Bookmark Button