Batch rename (again)

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

Moderators: helmut, XnTriq, xnview

Post Reply
wendell
Posts: 9
Joined: Thu Sep 02, 2004 8:46 pm

Batch rename (again)

Post by wendell »

I can't figure out how to delete numbers in the interior of filenames and still retain the rest of the names.
For example, how do I change 200410 PICT2233_0005 marilyn and 200410 PICT2234_0006 joan, etc. to read 200410 PICT2233 marilyn and 200410 PICT2234 joan, etc. I want to delete only those "interior numbers" (_0005,_0006, etc.) in over a hundred filenames and leave the rest of the names intact.
Can this be done?
Thanks,
Wendell
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: batch rename (again)

Post by helmut »

Wendell et al,
wendell wrote:I can't figure out how to delete numbers in the interior of filenames and still retain the rest of the names. ...
At the moment, only the full filename (without extension) can be used as placeholder. So with the XnView batch renaming you won't be able to achieve what you want.
What you needed is a sort of substring-function which allows to extract sub strings (parts) of an existing value of a placeholder. Or something like "Filename without digits" would also help, but would be much flexible. But both is not supported by XnView at the moment.

Please see also the useful info in topic 'Drag-n-drop, Rename with search-n-replace'.
Guest

Post by Guest »

Thanks, Helmut, I'll give the suggestions a try.

Wendell
AHCarter
Posts: 33
Joined: Thu Jan 01, 2004 10:13 pm
Location: South Carolina USA

Re: Batch rename (again)

Post by AHCarter »

wendell wrote:I can't figure out how to delete numbers in the interior of filenames and still retain the rest of the names.
For example, how do I change 200410 PICT2233_0005 marilyn and 200410 PICT2234_0006 joan, etc. to read 200410 PICT2233 marilyn and 200410 PICT2234 joan, etc. I want to delete only those "interior numbers" (_0005,_0006, etc.) in over a hundred filenames and leave the rest of the names intact.
Can this be done?
Thanks,
Wendell
While Xnview is an awesome proggie and it's batch rename is awesome for somebody who may not be familiar with DOS and batch routines in that environment, you would probably do well to check out

news:alt.msdos.batch
news:alt.msdos.batch.nt

However, you can also type in the name of what you want, then for the sequence, use the "#", though I would use at least one more than needed, perhaps:

<Current Date>_###_Joan.

Also to be considered, the date format doesn't allow the sorting (it may just be a mental thing with me, but I like files that I have named according to date to be in the YYYYMMDD format), at least visually of pics, or any file as it can rename any file, not just graphics. I just checked and the date would be in the format MM-DD-YYYY, if manipulated in DOS or even Windows Exlorer, the ideal date format would be YYYYMMDD (like the military does). Though that might be able to be remedied by tweaking in the INI or registry, depending on how you have yours setup.
Sincerely,
A.H. Carter
d(-_-)b

OS:Win 98 SE
Processor:Cyrix 6x86MX (MMX), 250 MHz
Xnview Ver: 1.74
RAM: 380MB
Post Reply