ISDBSongData::Path

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let Path As String


Property description

When you modify this property, MediaMonkey automatically tries to also accordingly move/rename the fileon disk. If you don't want to do so, you can set empty string to Path property first, i.e.:

SD.Path = ""
SD.Path = NewPath        ' This doesn't try to move/rename the original file

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

Path
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

Sub

  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
  Next
' 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