{Folder name[~ ~-]}-# not working

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: xnview, Dreamer

KoolPal
Posts: 6
Joined: Thu Mar 20, 2025 9:15 am

{Folder name[~ ~-]}-# not working

Post by KoolPal »

Hi,

Perhaps I am unable to get this right - so please bear with me

I am using XnConvert Portable Version 1.106.0 - windows x64 (Oct 12 2025) - Libformat version 7.228

I am trying to get output as {Folder name[~ ~-]}-# - meaning - replace space with hyphen for naming the output files

I checked
You can replace a word by another by using [~xxx~xxx]

eg.

• {Filename [~img~out]} => out_example_105
from viewtopic.php?t=48554

as well as tried to understand from viewtopic.php?t=47074

What I see - example
Folder name = Downloaded Photos

If I use just {Folder name}-# - I get
Downloaded Photos-1.jpg
Downloaded Photos-2.jpg

If I change it to
{Folder name [~ ~-]}-# - I get
-1.jpg
-2.jpg

What am I doing wrong here?

Is there any other way to get folder and replace space with hyphen using

Please guide.

Thanks a lot.
User avatar
xnview
Author of XnView
Posts: 47372
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: {Folder name[~ ~-]}-# not working

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 47372
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: {Folder name[~ ~-]}-# not working

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.10.1. Please check and confirm the bug fix here.
Pierre.