ISDBSongData::Path
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 fileNote 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.
| 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
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