title
Products            Buy            Support Forum            Professional            About            Codec Central
 

[trimfirstfolder]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • svetter
    • Nov 2013
    • 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, 05:12 PM.
  • Oggy
    dBpoweramp Guru
    • Apr 2015
    • 697

    #2
    Re: [trimfirstfolder]

    Originally posted by svetter
    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, 05:57 PM.

    Comment

    • svetter
      • Nov 2013
      • 4

      #3
      Re: [trimfirstfolder]

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

      Cheers, Stephen

      Comment

      • mville
        dBpoweramp Guru
        • Dec 2008
        • 4015

        #4
        Re: [trimfirstfolder]

        Originally posted by svetter
        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?

        Comment

        • Dat Ei
          dBpoweramp Guru
          • Feb 2014
          • 1745

          #5
          Re: [trimfirstfolder]

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


          Dat Ei

          Comment

          Working...

          ]]>