PDA

View Full Version : Conversion: preserving paths



chrisjj
11-18-2015, 09:22 AM
I have various audio base folders at various levels from root containing WMAs themselves in subfolders. I want to launch Batch Convert on any one of these base folders e.g. http://i.imgur.com/e7MnPac.png to convert to a new base folder of M4As that mirrors it i.e. has each output M4A at the position corresponding to the input WMA.

How can I do this?

Having tried the various FOLDER elements documented https://archive.is/i1JVD , I can find no "Output Location:" settings that do this. The nearest I have found requires changing the number of [TRIMFIRSTFOLDER] elements for each different base folder level. The best alternative I have found is

Folder <output base folder>
Dynamic [origpath]\[origfilename]

which puts the input base folder path in the output base folder path, and then in Explorer, manually move the output base folder to the right location and delete the redundant copies of the input folders.

Spoon
11-18-2015, 09:39 AM
By the time the files reach the converter, it does not know you selected a 'base' folder to convert, so it is not possible.

chrisjj
11-18-2015, 05:18 PM
OK, thanks.

Would you consider adding a naming element to solve this?

E.g. one or both of:

[TRIMTOBASEFOLDER]string[] removes the first folders that appear in the path to the folder passed to the converter command e.g. by Explorer's 'dBpoweramp Batch Convert' command. Example: [TRIMTOBASEFOLDER]f1\f2\f3[] when executed on '\f1\f2' returns 'f2\f3'

[TRIMTOCOMMONFOLDER]string[] removes the first folders that appear in the path of all files in this batch Example: [TRIMTOCOMMONFOLDER]f1\f2\f3[] when files are in '\f1\f2\f3' and '\f1\f2\f4' only, returns 'f2\f3'

Spoon
11-18-2015, 07:14 PM
There is the wish list section of this forum for such requests.

chrisjj
11-18-2015, 07:41 PM
There is the wish list section of this forum for such requests.

Posted there https://forum.dbpoweramp.com/showthread.php?37211-Elements-to-allow-path-preservation-on-convertison&p=161805*post161805 .