1. Home
  2. Computing & Technology
  3. Linux

Using KRename: Building The Filename - Advanced Mode
KRename: The Free Batch Renamer

By , About.com Guide

2) Using KRename

2.5) Building The Filename

2.5.2) Building the filename – Advanced Mode

Click here for larger screen shot.

In the advanced mode you can completely create the new filename by entering an expression in the Template text field. The text is constructed by plaintext and by certain tokens. Tokens are KRename commands or keywords with a special meaning. All commands or listed in the dialog which pops up when pressing the Functions... button.

Of course you will see that the real time preview below is updated immediately as soon as you change the template string.

Contrary to the beginners mode, you can also change the file extension of the file in the advanced mode. By default KRename will use the extension of the input file, but if you click on the Use extension of the input file check box you can build the file extension in the same way by using tokens as the normal filename. You might also want to specify from which point the file extension should start. This is useful if you are working with filenames like mybackup.tar.bz2 or backup01.05.2004.zip. In the first case you want the extension to start on the first dot (i.e tar.bz2 is the extension) and in the latter case the extension should start on the last dot so that zip is used as fileextension.

So how is the template build up? It is quite easy: Just add a textstring and a few tokens, e.g.: "wallpaper ##" will result in filenames: "wallpaper 01", "wallpaper 02" ... . "wallpaper" is no known KRename token, so KRename will leave it as it is. But the "#" stands for a number in KRename so it will be processed and replaced by a number. The more #'s you add after each other, the more leading 0 you will get (see number of digits in beginners mode).

......................................................
Table of Contents:

1) Introduction
    1.1) What is KRename?
    1.2) How much does it cost?
    1.3) Where can I get it?
    1.4) I need help, whom can I ask?

2) Using KRename
    2.1) The First Start
    2.2) Adding Files
            2.2.1) File Previews
            2.2.2) Sorting Files
    2.3) Rename, Copy or Move?
    2.4) Plugins
    2.5) Building the filename
            2.5.1) Building the filename – Beginners Mode
            2.5.2) Building the filename – Advanced Mode
            2.5.3) Available tokens in KRename
            2.5.4) Advanced renaming features
            2.5.5) Date formatting
    2.6) Renaming Completed

3) Examples
     3.1) Sorting your picture collection – Beginners Mode
     3.2) Capitalizing some files – Beginners Mode
     3.3) Converting filenames to lower case – Advanced Mode
     3.4) Renaming your mp3 collection – Advanced Mode
     3.5) Replacing spaces with underscores – Advanced Mode

4) Support us!

5) Thanks to:

Explore Linux
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Software
  5. Other Linux Software
  6. KRename
  7. Using KRename Batch Renamer - Building The Filename - Advanced

©2009 About.com, a part of The New York Times Company.

All rights reserved.