Batch rename: preserve hierarchical category order instead of alphabetical
Posted: Sun Jan 04, 2026 12:23 pm
Hi
I’m using XnView MP and batch renaming files with {Categories} in the filename template.
Currently, categories are always inserted in alphabetical order, regardless of their hierarchical structure. What I need instead is the hierarchical order as defined in the category tree.
Example:
Defined hierarchy in the Catalog:
W… > D…
Result during batch rename:
D…, W…
Desired result:
W…-D…
The hierarchy is clearly present in XnView MP’s category tree, but it appears to be flattened and alphabetically sorted during batch renaming.
I’ve also tested {XMP:Subject}, {XMP:HierarchicalSubject}, and {IPTC:Keywords}, but these show similar behavior: either only parent categories are shown, or parent + parent/child categories are flattened together.
Is there any way to preserve or control the hierarchical category order during batch rename?
Or is this simply a limitation, and not configurable via a setting?
Thanks!
I’m using XnView MP and batch renaming files with {Categories} in the filename template.
Currently, categories are always inserted in alphabetical order, regardless of their hierarchical structure. What I need instead is the hierarchical order as defined in the category tree.
Example:
Defined hierarchy in the Catalog:
W… > D…
Result during batch rename:
D…, W…
Desired result:
W…-D…
The hierarchy is clearly present in XnView MP’s category tree, but it appears to be flattened and alphabetically sorted during batch renaming.
I’ve also tested {XMP:Subject}, {XMP:HierarchicalSubject}, and {IPTC:Keywords}, but these show similar behavior: either only parent categories are shown, or parent + parent/child categories are flattened together.
Is there any way to preserve or control the hierarchical category order during batch rename?
Or is this simply a limitation, and not configurable via a setting?
Thanks!