number extension for same date files

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
reddwarf4ever
Posts: 21
Joined: Sun Aug 21, 2022 11:34 pm

number extension for same date files

Post by reddwarf4ever »

Same date files have a suffix number 01,02,03 etc....is thewre a way of putting these in brackets thanks
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: number extension for same date files

Post by xnview »

you can use 'Batch rename'
Pierre.
reddwarf4ever
Posts: 21
Joined: Sun Aug 21, 2022 11:34 pm

Re: number extension for same date files

Post by reddwarf4ever »

That's not the question
I know I can use batch rename
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: number extension for same date files

Post by michel038 »

So what is your question if you want to add brackets in file names without using rename function ?
You mean "Change timestamp" ?
reddwarf4ever
Posts: 21
Joined: Sun Aug 21, 2022 11:34 pm

Re: number extension for same date files

Post by reddwarf4ever »

Ok
If there are multiple files with the same date, they get renamed
21/06/2024-
21/06/2024-01
21/06/2024-02
21/06/2024-03

So I want to add brackets to 01,02,03
Hope that's clearer

Thanks
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: number extension for same date files

Post by michel038 »

sorry, I misunderstood and also made a mistake
The problem is to rename files using a date field ?

> Batch rename , using the first field "name template"
for example {Creation Date [Ymd]}
.. gives the file names you describe ok


You can use {Creation Date[Y/m/d]}-[##]
With start =1 and step =1
You will get
21/06/2024-[01]
21/06/2024-[02]
21/06/2024-[03]
21/06/2024-[04]

if you rename more than 100 files, use ### ...
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

Re: number extension for same date files

Post by BuckSkin »

michel038 wrote: Thu Feb 15, 2024 10:57 am You can use {Creation Date[Y/m/d]}-[##]
With start =1 and step =1
You will get
21/06/2024-[01]
21/06/2024-[02]
21/06/2024-[03]
21/06/2024-[04]
Just a bit confused ---
Would not using [Y/m/d] yield 2024/06/21 instead of 21/06/2024 ?

Also, I don't think Windows will allow me to use the slashes \ | / in filenames.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: number extension for same date files

Post by michel038 »

Right, there are mistakes in my post :?
New version
You can use {Creation Date[Y-m-d]}-[##]
With start =1 and step =1
You will get
2024-06-21-[01]
2024-06-21-[02]
2024-06-21-[03]
2024-06-21-[04]

... abandoning the French date format [d-m-Y] makes sorting by date much easier
Post Reply