I am trying to rename files with some variables that include the need to reuse parts of the original filename together with fixed characters.
I have asked a similar question earlier and it was answered, referring to release notes for version 6.0.0 "6.0.0 - loop support and more". This was back in 2011 and the need for this solution vanished. Now it has reappeared. I some more advice on what techniques to use, at least where to look for documentation.
How can i call a specific parts of the original filename to be included in different positions in the new filename?
example:
ABBSA1-1304-1-003-T.pdf (newspapercode 4 char)(section 2 char)-DDMM-1-(pagenumber 3 char)-T.pdf
renamed to
BUAB_20160413_1_01_003.pdf (newspapercode 4 char)_YYYYMMDD_1_(section 2 char)_(pagenumber 3 char).pdf
I cannot use dateformat variable as date is not always relative to present date, but date positions have to be altered DDMM to MMDD
I want to collect the position 14-16 (003) in the original filename and put them into position 20-22 in the renamed file.
Is it possible to do this with the "Postprocess mask with variable" option, or do I have to create multlple tasks to alter the filename the way I need to?
Thanks.
Edited by moderator
2016-12-27T12:18:33Z
|
Reason: Not specified