ISDBSongData::Path: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
MoDementia (talk | contribs) No edit summary  | 
				No edit summary  | 
				||
| Line 2: | Line 2: | ||
===Property description===  | ===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.  | |||
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.:  | |||
<source lang="vb">  | |||
SD.Path = ""  | |||
SD.Path = NewPath        ' This doesn't try to move/rename the original file  | |||
</source>  | |||
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.  | |||
{{Property Summary|SongData|Path|String|Songs|SongPath|Text|Path|C:\My Music\Warterloo.mp3|}}  | {{Property Summary|SongData|Path|String|Songs|SongPath|Text|Path|C:\My Music\Warterloo.mp3|}}  | ||
Latest revision as of 10:55, 28 December 2008
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