Batch rename: using the Directory field

Bugs and Suggestions in XnView Classic which have been resolved

Moderators: XnTriq, xnview

Post Reply
User avatar
B.Douille
Posts: 198
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Batch rename: using the Directory field

Post by B.Douille »

If you select "Directory" as a field to use in the renaming template you get something useless:
"C-\Documents and Settings\Username\My Documents\..."

The column after the drive letter is replaced already but not the backlash. I understand that a user can take profit from the Replace option but it's not obvious. Is this normal behavior?

Anyway I don't see the benefit of naming a file with it's original path :? It may drive to very long names except if you used to store your images near the root directory. Other users may explain/confirm usage.
May I suggest to replace this field with another? Say the parent folder name. This may allow to set names like "Holiday_Belgium_004" where files are stored in a directory structure like
"C:\...\My Pictures\Holiday\Luxemburg"
"C:\...\My Pictures\Holiday\Belgium"
...
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Something missed from last testing session

Post by marsh »

Confirmed.
User avatar
xnview
Author of XnView
Posts: 33852
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch rename: using the Directory field

Post by xnview »

B.Douille wrote:If you select "Directory" as a field to use in the renaming template you get something useless:
"C-\Documents and Settings\Username\My Documents\..."

The column after the drive letter is replaced already but not the backlash. I understand that a user can take profit from the Replace option but it's not obvious. Is this normal behavior?
So replace all '\' by '_'??
Anyway I don't see the benefit of naming a file with it's original path :? It may drive to very long names except if you used to store your images near the root directory. Other users may explain/confirm usage.
May I suggest to replace this field with another? Say the parent folder name. This may allow to set names like "Holiday_Belgium_004" where files are stored in a directory structure like
"C:\...\My Pictures\Holiday\Luxemburg"
"C:\...\My Pictures\Holiday\Belgium"
...
You have <foldername>
Pierre.
User avatar
B.Douille
Posts: 198
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Batch rename: using the Directory field

Post by B.Douille »

xnview wrote:
B.Douille wrote:If you select <Directory> as a field to use in the renaming template you get something useless:
"C-\Documents and Settings\Username\My Documents\..."

The column after the drive letter is replaced already but not the backlash. I understand that a user can take profit from the Replace option but it's not obvious. Is this normal behavior?
So replace all '\' by '_'??
Probably the most obvious, yes.
B.Douille wrote: Anyway I don't see the benefit of naming a file with it's original path :? It may drive to very long names except if you used to store your images near the root directory. Other users may explain/confirm usage.
How do we know if the field is still in used? As the renaming function has evolved over time, there are chance that the field <Directory> became useless. Can we put this as a "proposal for change or removal" in the next release?
xnview wrote:
B.Douille wrote:May I suggest to replace this field with another? Say the parent folder name.
This may allow to set names like "Luxembourg_Old houses-004", "Luxembourg_Museum-002"... where files are stored in a directory structure like
"C:\...\My Pictures\Holiday\Luxembourg\Old houses"
"C:\...\My Pictures\Holiday\Luxembourg\Museum"
"C:\...\My Pictures\Holiday\Luxembourg\Tonton"
"C:\...\My Pictures\Holiday\Belgium\See side"
...
You have <foldername>
I though of parent folder: the level under <foldername>. My examples wasn't obvious. I amended in the quote above and here is a sample template: "<parent>_<foldername>-#". So you classify, visually the pictures in relevant folders and start renaming.
As we are in the late stage of delivery for 1.90 I propose to keep the idea and move this post in the list for the next release, awaiting remarks form actual users of <Directory>, if any.
What do you think?
User avatar
xnview
Author of XnView
Posts: 33852
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch rename: using the Directory field

Post by xnview »

B.Douille wrote: Anyway I don't see the benefit of naming a file with it's original path :? It may drive to very long names except if you used to store your images near the root directory. Other users may explain/confirm usage.
How do we know if the field is still in used? As the renaming function has evolved over time, there are chance that the field <Directory> became useless. Can we put this as a "proposal for change or removal" in the next release?
xnview wrote:
B.Douille wrote:May I suggest to replace this field with another? Say the parent folder name.
This may allow to set names like "Luxembourg_Old houses-004", "Luxembourg_Museum-002"... where files are stored in a directory structure like
"C:\...\My Pictures\Holiday\Luxembourg\Old houses"
"C:\...\My Pictures\Holiday\Luxembourg\Museum"
"C:\...\My Pictures\Holiday\Luxembourg\Tonton"
"C:\...\My Pictures\Holiday\Belgium\See side"
...
You have <foldername>
I though of parent folder: the level under <foldername>. My examples wasn't obvious. I amended in the quote above and here is a sample template: "<parent>_<foldername>-#". So you classify, visually the pictures in relevant folders and start renaming.
As we are in the late stage of delivery for 1.90 I propose to keep the idea and move this post in the list for the next release, awaiting remarks form actual users of <Directory>, if any.
What do you think?[/quote]
Yes :-)
Pierre.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Batch rename: using the Directory field

Post by marsh »

B.Douille wrote:If you select "Directory" as a field to use in the renaming template you get something useless:
"C-\Documents and Settings\Username\My Documents\..."

The column after the drive letter is replaced already but not the backlash. I understand that a user can take profit from the Replace option but it's not obvious. Is this normal behavior?
That part is fixed in RC1. Dash '-' is replacement character.
User avatar
B.Douille
Posts: 198
Joined: Sat Sep 09, 2006 9:25 pm
Location: Hte Savoie - France

Re: Batch rename: using the Directory field

Post by B.Douille »

Ok, thanks for the improvement.

Still the longer term proposal for change: I'll post in another forum so we can close the story for this release.
Post Reply