Page 1 of 1
Batch rename (again)
Posted: Mon Dec 20, 2004 1:09 am
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
Re: batch rename (again)
Posted: Mon Dec 20, 2004 7:30 am
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'.
Posted: Wed Dec 22, 2004 2:21 am
by Guest
Thanks, Helmut, I'll give the suggestions a try.
Wendell
Re: Batch rename (again)
Posted: Mon Jan 03, 2005 7:26 pm
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.