1. Sometimes track name and file name does not match.
Ex: Track Name: My Song
File Name: 3 - My Song
The synchronization with the Sansa with have "My Song" (title instead of File name)
2. The "AC/DC" problem. The "/" is invalid in a file name or path.
So I "patch" the script like this:
Code: Select all
'ln = "HARP, MUSIC\" & trck.ArtistName & "\" & trck.AlbumName & "\" & GetFileName(trck.Path)
ln = "HARP, MUSIC\" & fso.CorrectFilename(trck.ArtistName) & "\" & fso.CorrectFilename(trck.AlbumName) & "\" & fso.CorrectFilename(trck.title)& "." & Right(GetFileName(trck.Path),3)Is there a better way to extract to file extension?