title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 5 of 5

Thread: [trimfirstfolder]

  1. #1

    Join Date
    Nov 2013
    Posts
    4

    [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,
    Last edited by svetter; 02-24-2018 at 11:12 AM.

  2. #2
    dBpoweramp Guru
    Join Date
    Apr 2015
    Location
    England
    Posts
    646

    Re: [trimfirstfolder]

    Quote Originally Posted by svetter View Post
    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,
    Hi svetter,

    Try [trimfirstfolder][trimfirstfolder][trimfirstfolder][origpath]\[origfilename][][][]

    One [] for each [trimfirstfolder]
    Last edited by Oggy; 02-24-2018 at 11:57 AM.

  3. #3

    Join Date
    Nov 2013
    Posts
    4

    Re: [trimfirstfolder]

    Hi Oggy - Thanks - doesn't quite follow the syntax published, but it worked.

    Cheers, Stephen

  4. #4
    dBpoweramp Guru
    Join Date
    Dec 2008
    Location
    London, UK
    Posts
    3,721

    Re: [trimfirstfolder]

    Quote Originally Posted by svetter View Post
    Hi Oggy - Thanks - doesn't quite follow the syntax published, but it worked.
    I've just had a look here dBpoweramp Naming, which shows the correct syntax, [TRIMFIRSTFOLDER]string[].

    Where are you seeing the incorrect syntax?

  5. #5
    dBpoweramp Guru
    Join Date
    Feb 2014
    Posts
    1,295

    Re: [trimfirstfolder]

    The empty pair of brackets "[]" terminate the argument of and the function itself. That helps the parser.


    Dat Ei

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •