User Tools

Site Tools


xplore:batch_rename

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

xplore:batch_rename [2018/11/06 00:10]
xplore:batch_rename [2019/07/16 20:26] (current)
Line 1: Line 1:
 +===== Batch rename =====
  
 +Besides renaming single file, X-plore contains also tool for renaming multiple files.
 +
 +This is a powerful tool that allows to:
 +  * Change name
 +  * Change extension
 +  * Change case of file name
 +  * Move files into sub-folders
 +  * Use various templates to build new file name
 +
 +To start the tool, [[.:multi-selection|select multiple]] files, then choose Rename function (from button or long-press menu). A dialog will appear where you can enter parameters:
 +  * Name
 +  * Extension
 +  * Advanced options
 +
 +{{.:ctx_batch_rename.png?nolink&240}}
 +
 +==== Name template ====
 +
 +In place of name you can type desired new name. Of course, giving same name to multiple files doesn't make much sense. In case of name conflict, X-plore adds number (n) in brackets to avoid name duplication.
 +
 +So in name field you can better type some template consisting of parts that will be replaced by various parameters. Each template starts with character % and some keyword after it, for example %hr is replaced by hour from file's timestamp. You don't need to remember the template keywords, just type % and you'll get list of available keywords with their meaning.
 +
 +=== Types of replacement keywords ===
 +
 +There are these groups of keywords that are replaced by some text:
 +
 +  * original name
 +  * various formats of date and time (from file's timestamp)
 +  * counter (increasing for each selected file)
 +  * audio tags from mp3 (artist/album/title)
 +
 +:info: Timestamp for JPG images is taken from Exif data stored in image, not from actual file's timestamp, this way you get precise date when image was taken.
 +
 +:info: For MP3 files, ID3 tags are read, so that you can rename music files by music artist/album/title.
 +
 +
 +==== Extension ====
 +
 +Unless you set extension, it's copied from original file name. If you set it, it is applied to all files. Note: if you rename folders, extension is not applied to them.
 +
 +
 +==== Advanced options ====
 +
 +Here you can set case of characters (lower/upper/capital).
 +
 +
 +==== Renaming into sub-folders ====
 +
 +You can use '/' character in name template to move files into sub-folders (relative to folder where selected files are stored). For example, you can use name template //%YYYY/%MM/%DD/%time// to store photos into sub-folders by year, month and day, and files will be named by time of creation. The batch-rename tool will create needed sub-folders and move files there.
 +
 +
 +==== History ====
 +
 +Batch rename tool remembers last entered parameters, so in next renaming you can choose from history to use same parameters as used previously.
 +
 +
 +==== Preview ====
 +
 +While setting parameters for renaming, you can see Preview of how new names will look on your selected files (Note: only first few files are shown in preview, not all).
 +This way you can be sure that you get desired result before doing actual renaming.
 +
 +
 +==== Proceed with rename ====
 +
 +Once you select desired parameters for renaming, a //Rename// button will appear. After clicking it, actual renaming will be performed on selected files.