From MediaMonkey Wiki
Revision as of 00:24, 8 May 2008 by MoDementia (talk | contribs)
Jump to: navigation, search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let Path As String

Property description

Note that the Path is stored as :\My Music\Warterloo.mp3 and the Drive letter is added from the medias table and MediaMonkey.ini.

Scripting Object SDBSongData
Value Name Path
Value Type String
Database Table Songs
Field Name SongPath
Field Type Text
Tracklist Column Path
Example Data C:\My Music\Warterloo.mp3

Example Code

Complete script


  For iCounter = 0 to objSongList.count - 1                                    'SongLists
      Set objSongData = objSongList.Item(iCounter)
      StringPath = objSongData.Path
      SDB.MessageBox "Value = '" &  StringPath & "'", mtError, Array(mbOK)    'SDB.MessageBox
' objSongData.Path = StringNewPath 'Commented Out For Safety
' objSonglist.UpdateAll              'Commented Out For Safety                 'UpdateAll
                         Updates db and writes tags (if checked in options)
End Sub