-
[trimfirstfolder]
Hi - I am looking to export to a new directory, preserving the path\filename, but stripping the first three directories.
i.e. looking to use the following:
[TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][origpath]
I am exporting from:
C:\Users\Stephen\Music\Artist\Album\tracks
looking to create
C:\Users\Stephen\Music for BlackBerry\Artist\Album\tracks
if I insert a third [TRIMFIRSTFOLDER] Batch Converter creates
C:\Users\Stephen\Music for BlackBerry\[TRIMFIRSTFOLDER]Music\Artist\Album\tracks
Following
[TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][origpath]
creates
C:\Users\Stephen\Music for BlackBerry\Music\Artist\Album\tracks
Yes, I can manually move the generated artist folders up one level, but really should be able to string multiple instances of [TRIMFIRSTFOLDER] into the commend.
Thanks,
-
Re: [trimfirstfolder]
[QUOTE=svetter;182337]Hi - I am looking to export to a new directory, preserving the path\filename, but stripping the first three directories.
i.e. looking to use the following:
[TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][origpath]
I am exporting from:
C:\Users\Stephen\Music\Artist\Album\tracks
looking to create
C:\Users\Stephen\Music for BlackBerry\Artist\Album\tracks
if I insert a third [TRIMFIRSTFOLDER] Batch Converter creates
C:\Users\Stephen\Music for BlackBerry\[TRIMFIRSTFOLDER]Music\Artist\Album\tracks
Following
[TRIMFIRSTFOLDER][TRIMFIRSTFOLDER][origpath]
creates
C:\Users\Stephen\Music for BlackBerry\Music\Artist\Album\tracks
Yes, I can manually move the generated artist folders up one level, but really should be able to string multiple instances of [TRIMFIRSTFOLDER] into the commend.
Thanks,[/QUOTE]
Hi svetter,
Try [trimfirstfolder][trimfirstfolder][trimfirstfolder][origpath]\[origfilename][][][]
One [] for each [trimfirstfolder]
-
Re: [trimfirstfolder]
Hi Oggy - Thanks - doesn't quite follow the syntax published, but it worked.
Cheers, Stephen
-
Re: [trimfirstfolder]
[QUOTE=svetter;182349]Hi Oggy - Thanks - doesn't quite follow the syntax published, but it worked.[/QUOTE]
I've just had a look here [URL="https://www.dbpoweramp.com/help/dmc/Naming.htm"]dBpoweramp Naming[/URL], which shows the correct syntax, [TRIMFIRSTFOLDER]string[].
Where are you seeing the incorrect syntax?
-
Re: [trimfirstfolder]
The empty pair of brackets "[]" terminate the argument of and the function itself. That helps the parser.
Dat Ei