I love the regex utility, but I'm not really a programmer type and I'm struggling to understand how to change the expression.
The script "
Move files to <Genre>\<Artist>\<Album>\<Track#> - <Title>.ext" is a good starting point, but I have to organize my files a bit differently. I am forced to use two locations/drives,
and my files then need to be sub-sorted by genre, then organized by Alphabet. For example I need to move files into this structure:
Example for mp3/acc/m4a = Z:\mp3\Alternative\A\Alabama 3\Exile On Coldharbour Lane\01 - Alabama 3 - Converted.mp3
OR
Example for flac = Y:\Flac\Alternative\C\Concrete Blonde\Bloodletting\01 - Concrete Blonde - Bloodletting (The Vampire Song).flac
The VBscript as it is presented within the utility;
- Code: Select all
IIf(Len(oSongData.Genre) > 0 And Len(oSongData.ArtistName) > 0 And Len(oSongData.AlbumName) > 0 And Len(oSongData.TrackOrderStr) > 0 And Len(oSongData.Title) > 0, "$1\" & SDB.Tools.FileSystem.CorrectFilename(oSongData.Genre & "\" & oSongData.ArtistName & "\" & oSongData.AlbumName & "\" & Right("00" & oSongData.TrackOrderStr, 2) & " - " & oSongData.Title) & ".$4", oSongData.Path)
Does not seem to work. It inserts dashes "-" instead of backslashes "\" as expected. The actual output of the script is "
Y:\Jazz-Coleman Hawkins-Coleman Hawkins! Roy Eldridge! Johnny Hodges! Alive! At the Village Gate-02 - Perdido.flac" I've read as much as I can digest and still cannot figure out why it does this.
Could someone point/help me in the right direction . . .
Thanks
Jeff
I love the regex utility, but I'm not really a programmer type and I'm struggling to understand how to change the expression.
The script "[b]Move files to <Genre>\<Artist>\<Album>\<Track#> - <Title>.ext[/b]" is a good starting point, but I have to organize my files a bit differently. I am forced to use two locations/drives, [u]and [/u] my files then need to be sub-sorted by genre, then organized by Alphabet. For example I need to move files into this structure:
[b]Example for mp3/acc/m4a = [/b]Z:\mp3\Alternative\A\Alabama 3\Exile On Coldharbour Lane\01 - Alabama 3 - Converted.mp3
OR
[b]Example for flac = [/b]Y:\Flac\Alternative\C\Concrete Blonde\Bloodletting\01 - Concrete Blonde - Bloodletting (The Vampire Song).flac
The VBscript as it is presented within the utility;[code]IIf(Len(oSongData.Genre) > 0 And Len(oSongData.ArtistName) > 0 And Len(oSongData.AlbumName) > 0 And Len(oSongData.TrackOrderStr) > 0 And Len(oSongData.Title) > 0, "$1\" & SDB.Tools.FileSystem.CorrectFilename(oSongData.Genre & "\" & oSongData.ArtistName & "\" & oSongData.AlbumName & "\" & Right("00" & oSongData.TrackOrderStr, 2) & " - " & oSongData.Title) & ".$4", oSongData.Path)[/code]
Does not seem to work. It inserts dashes "-" instead of backslashes "\" as expected. The actual output of the script is "[b]Y:\Jazz-Coleman Hawkins-Coleman Hawkins! Roy Eldridge! Johnny Hodges! Alive! At the Village Gate-02 - Perdido.flac[/b]" I've read as much as I can digest and still cannot figure out why it does this.
Could someone point/help me in the right direction . . .
Thanks
Jeff