Media Database

  • Thread starter Thread starter Gordan M.
  • Start date Start date
G

Gordan M.

I have several mp3 files that I want to access through
database functionality. I want to have a text "pointer"
to the actual files, in the database. When the field in
the database is fired, the mp3 file should play in the
media player. How do I do this?

Thanks for your help.
 
Your db can just store a string for the filename. To use .NET to launch
something, use System.Diagnostics.Process. Using the ProcessStartInfo
class, you can set arguments and configure how the process should run. You
can use ShellExecute to "execute" the .mp3 directly. This will have the
same effect as double-clicking an MP3 file (it'll use whatever program is
registered for that extention). The other way would be to start
wmplayer.exe with the filename as an argument.
-mike
MVP
 
Back
Top