Batch Renaming

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

Moderators: helmut, XnTriq, xnview

Post Reply
Bart
Posts: 22
Joined: Tue Dec 14, 2004 8:33 am

Batch Renaming

Post by Bart »

I have trouble understanding how the renaming function works.

Suppose I have a directory full of files named 01, 02, 03 etc.
I want to rename them to (eg) p4798, p4799, p4800 etc.

Is that possible? If so, how?

Bart
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Renaming

Post by helmut »

Bart wrote:I have trouble understanding how the renaming function works.

Suppose I have a directory full of files named 01, 02, 03 etc.
I want to rename them to (eg) p4798, p4799, p4800 etc.

Is that possible? If so, how?

Bart
The key to renaming is the file template. "Template", the name says it, is the template which consists of text and placeholders which build the new file names. To rename your files to p4798, ... you will have to:

1.) Select all the files that you want to rename
2.) Open "Batch rename" dialog using menu "Tools > Batch rename".
3.) As file template specify "p#" (without double quotes, "p" is your fixed text, "#" is a numeric enumerator, press "Insert >" to see more placeholders)
4.) As start number specify "4798" (without double quotes)
-> In column "New Name" you will see the new filenames.
5.) If needed, sort the files using the "Sort" dropdownlist or sort the files manually
6.) Trigger batch renaming by selecting "OK" button.
Bart
Posts: 22
Joined: Tue Dec 14, 2004 8:33 am

Post by Bart »

Right, Helmut.
That works fine.
Thanks very much.

Bart
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Bart wrote:Right, Helmut.
That works fine.
Thanks very much.

Bart
Good to hear. :-)

Perhaps time to write a FAQ or add some words about Batch Renaming in the Online Help...
Post Reply