Batch rename \ Duplicate option problem

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
Troudouillet
Posts: 1
Joined: Wed Jan 03, 2018 7:21 pm

Batch rename \ Duplicate option problem

Post by Troudouillet » Wed Jan 03, 2018 7:38 pm

Hello,

Just a tiny problem.

I use a lot "Batch rename" with option "duplicate"
(in french : J'utilise l'option "Renommer par lot" avec l'option "Doublon")
bug.png
I use text " - ###"
And it's important to note i use a space before and after the charater "-".
Important because the space before "-" is not saved.
(Et le problème vient du fait que le caractère espace mis au début de " - ###" n'est pas sauvegardé)

I use option to save parameter in "ini" file in user folder
So i think it's because of that. Because in ini file, if we save a text starting by space, text must be in ", else space are not saved. (I get same problem on one of my software, stupid bug but it's take me long time to understand why some text option ot working correctly)
(Je pense que le soucis vient de l'enregistrement des options dans le fichier *.ini, car le caractère espace au début de texte n'est pas pris en compte)

Here a copy of a part of my ini file

Code: Select all

[Rename]
CaseFlag=0
Extension=jpg
RCase=0
Replace="P10703"
Start=1
Step=1
TCreate=0
Template0=[<Modified Date [Y-m-d]>] Intercepteur impérial 
Template1=[<Modified Date [Y-m-d]>] Arya
Template10=[<Date Taken [Y-m-d]>] Tourbière de Kerfontaine (Sérent) - ###
Template11=[<Date Taken [Y-m-d]>] Josselin - ###
Template12=[<Date Taken [Y-m-d]>] Légo - Chasseur d'épaves - ###
Template13=[<Date Taken [Y-m-d]>] Légo - Chasseur d'épaves
Template14=[<Date Taken [Y-m-d]>] Arya - ###
Template15=[<Date Taken [Y-m-d]>] Cata'strophe - ###
Template16=[<Date Taken [Y-m-d]>] Lac Chauvet - ###
Template17=[<Date Taken [Y-m-d]>] Lough Salt - ###
Template18=[<Date Taken [Y-m-d]>] Doe Castle - ###
Template19=[<Date Taken [Y-m-d]>] Dublin - ###
Template2=[<Modified Date [Y-m-d]>] Louis
Template3=[<Modified Date [Y-m-d]>] Jardin
Template4=[<Date Taken [Y-m-d]>] Pointe de Locmiquel - ###
Template5=[<Date Taken [Y-m-d]>] Vincent Delphine Mathilde - ###
Template6=[<Date Taken [Y-m-d]>] Gergovie - ###
Template7=[<Date Taken [Y-m-d]>] Tournoël - ###
Template8=[<Date Taken [Y-m-d]>] Malestroit - ###
Template9=[<Date Taken [Y-m-d]>] Canal de Nantes à Brest (Painfaut) - ###
UseCase=0
UseExtension=0
UseReplace=0
UseTemplate=1
With="- 0"
added=1
numbers=1
suffix= - ###
All good here
i open and close program

Code: Select all

[Rename]
CaseFlag=0
Extension=jpg
RCase=0
Replace="P10703"
Start=1
Step=1
TCreate=0
Template0=[<Modified Date [Y-m-d]>] Intercepteur impérial 
Template1=[<Modified Date [Y-m-d]>] Arya
Template10=[<Date Taken [Y-m-d]>] Tourbière de Kerfontaine (Sérent) - ###
Template11=[<Date Taken [Y-m-d]>] Josselin - ###
Template12=[<Date Taken [Y-m-d]>] Légo - Chasseur d'épaves - ###
Template13=[<Date Taken [Y-m-d]>] Légo - Chasseur d'épaves
Template14=[<Date Taken [Y-m-d]>] Arya - ###
Template15=[<Date Taken [Y-m-d]>] Cata'strophe - ###
Template16=[<Date Taken [Y-m-d]>] Lac Chauvet - ###
Template17=[<Date Taken [Y-m-d]>] Lough Salt - ###
Template18=[<Date Taken [Y-m-d]>] Doe Castle - ###
Template19=[<Date Taken [Y-m-d]>] Dublin - ###
Template2=[<Modified Date [Y-m-d]>] Louis
Template3=[<Modified Date [Y-m-d]>] Jardin
Template4=[<Date Taken [Y-m-d]>] Pointe de Locmiquel - ###
Template5=[<Date Taken [Y-m-d]>] Vincent Delphine Mathilde - ###
Template6=[<Date Taken [Y-m-d]>] Gergovie - ###
Template7=[<Date Taken [Y-m-d]>] Tournoël - ###
Template8=[<Date Taken [Y-m-d]>] Malestroit - ###
Template9=[<Date Taken [Y-m-d]>] Canal de Nantes à Brest (Painfaut) - ###
UseCase=0
UseExtension=0
UseReplace=0
UseTemplate=1
With="- 0"
added=1
numbers=1
suffix= - ###
As you see, Suffix is not saved correctly, space is missing.
I think this parameters must be saved like "with" parameter. So :

Code: Select all

suffix=" - ###"
And the good point, if i edit ini file to add ", it's work. Option suffix is correctly read.

Thanks for the correction
And thanks for your great software.

Post Reply