Advanced tags

This is more advanced tags for the more advanced users because they are more difficult to use.

<ExifTool:value> Insert value from the external program ExifTool. value is the name of the ExifTool tag to be used.
<Substr:pos:count:start> Will insert a part of the original filename into the new name. The pos and count parameters are used to define what part of the filename that will get copyed.
Example of use: <Substr:5:2> will return wa for the filename The walking man.txt.

The parameters don't have to be numeric indexes, they can also be text strings to search for in the filename.
Example of use: <Substr:ki:an> will return ng m for The walking man.txt.
The following will yield the same result: <Substr:ki:4>

In the rare cases where you actually want to search for a number in the filename you can put the search term in quotes.
Example of use: <Substr:"2":2> will return nd for The 2nd door.txt.

The optional START parameter will define where to start searching the name.
Example of use: <Subtr:".":5:3> will return Story for A.Cool.Story.txt
<RSubstr:pos:count:start> Works exactly as the <Substr> tag but searches the string backwards.

Example of use <RSubstr:2:3> for A cool baby will return bab
<Switch:A:B>
New in version 4.14
Cycle through a list of values, applying each value to files in sequence. This is useful when you want to alternate between fixed labels like odd / even, or use repeating patterns such as A, B, C, etc. You can use any number of parameters.

Replace A:B with the values you want to switch between. The first file will get A, the second file will get B, the third file will get A again, and so on.

Example of use: <Switch:Odd:Even>
<Delimiter:delimiter>
Alias: <-:delimiter>
New in version 4.15
Inserts a delimiter but will never appear in the beginning or end of the filename and will not repeat. If separating metadata tags without this tag, you might end up with repeated delimiters when some metadata values are empty. For example:
<Title> - <Artist> - <Album> - <Year>
If the <Album> value is empty, you end up with a filename like this:
Heroes - David Bowie -  - 1977
To prevent this, the <Delimiter> tag can be used like this:
<Title><Delimiter: - ><Artist><Delimiter><Album><Delimiter><Year>
The result for the same case as above will be:
Heroes - David Bowie - 1977
Use the delimiter parameter to define the delimiter to use. If the same delimiter is used multiple times, only the first needs a parameter:
<Title><Delimiter: - ><Artist><Delimiter><Album>
Multiple different delimiter parameters are supported like this:
<Width><Delimiter:x><Height><Delimiter: - ><GPS Country><Delimiter><GPS City>
There is also a compact syntax alias for the delimiter tag, which is just <->. This is the same as above, but much shorter:
<Width><-:x><Height><-: - ><GPS Country><-><GPS City>
In the above example, the x delimiter will only be inserted if both Width and Height are not empty. If only Width and Height has values and the GPS-tags don't, the - delimiter will not be inserted. If both GPS-tags have values, the - delimiter will be inserted between them.
<Csv:column> When data has been imported with the Import data from CSV functionality in the Import menu, the values can be used with this tag. The column is a numeric value representing the column index with the first column having numeric value 1.
<Rand:min:max> Inserts a random number. min and max can be used to specify a minimum and a maximum range.
<Rand Str:length> Inserts a random string. Use the length value to specify the length of the string. Uses the values from a to z in lower case to produce the random string.

To get upper case letters, you can use the upper tag modifier: <Rand Str:8:upper>.
<Inc Hex:start:step> Will insert an incrementing hex based number starting with start and up. start can be any number value. Note start should be a decimal number, not a hex based number. For more information, see <Inc Nr> tag. Default value for start is 1.
<Inc Roman:start:step> Will insert an incrementing roman numeral starting with start and up. start can be any number value. Note start should be an integer number, not a roman numeral. For more information, see <Inc Nr> tag. Default value for start is 1.
<Dec Nr:start:step> Works like the <Inc Nr> tag but ads a decrementing number instead of an incrementing one. The start value is used to tell the program what the starting number will be and step is the step value between each file.
<File Content
:pos:count:filename>
Will insert a text phrase from a file. It will use the text starting a position POS in the filename and copy count characters. If filename is specified, Advanced Renamer will search for the text phrase in that file. If filename is omitted the file which is being renamed is used.

If filename is specified it must be quoted with ".

Examples of use:
<File Content:46:12:"c:\program files\files\myfile.txt">
<File Content:56:9>
Note: filename is optional. pos and count is required.
<File Line:line> Will insert a line of text from the file. The parameter line is the line number, starting from 1. Note, do not use on binary files.
<MetaData:fieldname>
New in version 4.15
Access metadata fields that have the same name as built-in tags.